Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear instead of delete dvr folder #469

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/ui/page_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,11 @@ static lv_obj_t *page_storage_create(lv_obj_t *parent, panel_arr_t *arr) {
} else {
if (fs_file_exists(DEVELOP_SCRIPT) || fs_file_exists(APP_BIN_FILE)) {
snprintf(buf, sizeof(buf), "%s, %s.\n%s:\n%s\n%s",
_lang("Detected files being accessed by SD Card"),
_lang("All storage options are disabled"),
_lang("Remove the following files from the SD Card and try again"),
DEVELOP_SCRIPT,
APP_BIN_FILE);
_lang("Detected files being accessed by SD Card"),
_lang("All storage options are disabled"),
_lang("Remove the following files from the SD Card and try again"),
DEVELOP_SCRIPT,
APP_BIN_FILE);
lv_label_set_text(page_storage.note, buf);
disable_controls();
}
Expand Down Expand Up @@ -529,7 +529,7 @@ static void page_storage_on_click(uint8_t key, int sel) {
lv_timer_handler();
LOGI("Clear dvr folder");
char buf[256];
snprintf(buf, sizeof(buf), "rm -rf %s%s", REC_diskPATH, REC_packPATH);
snprintf(buf, sizeof(buf), "rm -rf %s%s/*", REC_diskPATH, REC_packPATH);
system_exec(buf);
snprintf(buf, sizeof(buf), "%s #FFFF00 %s#", _lang("Clear DVR Folder"), _lang("Done"));
lv_label_set_text(page_storage.clear_dvr, buf);
Expand Down
Loading