From 60929942406c8dc5fcb5615e789cf8246e836d9c Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 16 Jan 2022 01:38:47 +0200 Subject: [PATCH] nyx: sd part: set attributes to folders also on restore --- nyx/nyx_gui/frontend/gui_tools_partition_manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c index 75d00e7..06a979d 100644 --- a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c +++ b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c @@ -189,6 +189,7 @@ static int _backup_and_restore_files(char *path, u32 *total_files, u32 *total_si { f_chdrive(dst); f_mkdir(path); + f_chmod(path, fno.fattrib, 0xFF); } // Enter the directory. res = _backup_and_restore_files(path, total_files, total_size, dst, src, labels);