summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_file_system.h')
-rw-r--r--editor/editor_file_system.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/editor/editor_file_system.h b/editor/editor_file_system.h
index 7aa0137f4e..6e864ff1a0 100644
--- a/editor/editor_file_system.h
+++ b/editor/editor_file_system.h
@@ -239,7 +239,7 @@ class EditorFileSystem : public Node {
bool _find_file(const String &p_file, EditorFileSystemDirectory **r_d, int &r_file_pos) const;
- void _scan_fs_changes(EditorFileSystemDirectory *p_dir, ScanProgress &p_progress);
+ void _scan_fs_changes(EditorFileSystemDirectory *p_dir, ScanProgress &p_progress, bool p_recursive = true);
void _delete_internal_files(const String &p_file);
int _insert_actions_delete_files_directory(EditorFileSystemDirectory *p_dir);
@@ -324,6 +324,19 @@ class EditorFileSystem : public Node {
HashSet<String> group_file_cache;
HashMap<String, String> file_icon_cache;
+ struct CopiedFile {
+ String from;
+ String to;
+ };
+
+ bool refresh_queued = false;
+ HashSet<ObjectID> folders_to_sort;
+
+ Error _copy_file(const String &p_from, const String &p_to);
+ bool _copy_directory(const String &p_from, const String &p_to, List<CopiedFile> *p_files);
+ void _queue_refresh_filesystem();
+ void _refresh_filesystem();
+
struct ImportThreadData {
const ImportFile *reimport_files;
int reimport_from;
@@ -378,6 +391,8 @@ public:
void move_group_file(const String &p_path, const String &p_new_path);
Error make_dir_recursive(const String &p_path, const String &p_base_path = String());
+ Error copy_file(const String &p_from, const String &p_to);
+ Error copy_directory(const String &p_from, const String &p_to);
static bool _should_skip_directory(const String &p_path);