diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 709266dd218..770ca0593d4 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -117,6 +117,10 @@ FileAccess::CreateFunc FileAccess::get_create_func(AccessType p_access) { return create_func[p_access]; }; +FileAccess::AccessType FileAccess::get_access_type() const { + return _access_type; +} + String FileAccess::fix_path(const String &p_path) const { //helper used by file accesses that use a single filesystem diff --git a/core/os/file_access.h b/core/os/file_access.h index c6253518522..232e3d5260c 100644 --- a/core/os/file_access.h +++ b/core/os/file_access.h @@ -59,6 +59,7 @@ public: virtual Error _set_unix_permissions(const String &p_file, uint32_t p_permissions) = 0; protected: + AccessType get_access_type() const; String fix_path(const String &p_path) const; virtual Error _open(const String &p_path, int p_mode_flags) = 0; ///< open a file virtual uint64_t _get_modified_time(const String &p_file) = 0;