#define DIR_SCAN_NON_SCAN 0
#define DIR_SCAN_RECURSIVE 1
-#define DIR_SCAN_NON_RECURSIVE 2
+#define DIR_SCAN_NON_RECURSIVE 2
+
+#define RECYCLE_DIR_NAME "$RECYCLE.BIN"
+
GAsyncQueue *storage_queue2;
static GAsyncQueue *scan_queue2;
int scan_count = 0;
int sleep_count = 0;
- const char *trash = "$RECYCLE.BIN";
-
MS_DBG_SWARN("storage id [%s] start path [%s]", storage_id, start_path);
continue;
}
- if (strcmp(d->d_name, trash) == 0) {
+ if (strcmp(d->d_name, RECYCLE_DIR_NAME) == 0) {
MS_DBG_ERR("trash directory");
bpos += d->d_reclen;
continue;
int scan_count = 0;
int sleep_count = 0;
- const char *trash = "$RECYCLE.BIN";
-
bool is_missing = false;
ms_dir_scan_status_e scan_status = MS_DIR_SCAN_NONE;
continue;
}
- if (strcmp(d->d_name, trash) == 0) {
+ if (strcmp(d->d_name, RECYCLE_DIR_NAME) == 0) {
MS_DBG_ERR("trash directory");
bpos += d->d_reclen;
continue;