You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Add symlink API to the DirAccess (on macOS and Linux).
This commit is contained in:
@@ -50,7 +50,7 @@ private:
|
||||
AccessType _access_type;
|
||||
static CreateFunc create_func[ACCESS_MAX]; ///< set this to instance a filesystem object
|
||||
|
||||
Error _copy_dir(DirAccess *p_target_da, String p_to, int p_chmod_flags);
|
||||
Error _copy_dir(DirAccess *p_target_da, String p_to, int p_chmod_flags, bool p_copy_links);
|
||||
|
||||
protected:
|
||||
String _get_root_path() const;
|
||||
@@ -89,11 +89,15 @@ public:
|
||||
static bool exists(String p_dir);
|
||||
virtual uint64_t get_space_left() = 0;
|
||||
|
||||
Error copy_dir(String p_from, String p_to, int p_chmod_flags = -1);
|
||||
Error copy_dir(String p_from, String p_to, int p_chmod_flags = -1, bool p_copy_links = false);
|
||||
virtual Error copy(String p_from, String p_to, int p_chmod_flags = -1);
|
||||
virtual Error rename(String p_from, String p_to) = 0;
|
||||
virtual Error remove(String p_name) = 0;
|
||||
|
||||
virtual bool is_link(String p_file) = 0;
|
||||
virtual String read_link(String p_file) = 0;
|
||||
virtual Error create_link(String p_source, String p_target) = 0;
|
||||
|
||||
// Meant for editor code when we want to quickly remove a file without custom
|
||||
// handling (e.g. removing a cache file).
|
||||
static void remove_file_or_error(String p_path) {
|
||||
|
||||
Reference in New Issue
Block a user