diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-04-07 15:46:52 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2019-04-07 15:45:30 -0300 |
commit | cd4449e7abe97b2bc883e2d182db2cc41eb35f8c (patch) | |
tree | 2498bac08105314c5defedde82141430e01ffd0c /platform/android | |
parent | 65f3a953de3db4406f099d014acbc630f53eca9c (diff) |
Add FileAccess::set_unix_permissions for Unix platforms
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/file_access_android.h | 2 | ||||
-rw-r--r-- | platform/android/file_access_jandroid.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/file_access_android.h b/platform/android/file_access_android.h index f8d46ea5d2..b8e78627ec 100644 --- a/platform/android/file_access_android.h +++ b/platform/android/file_access_android.h @@ -70,6 +70,8 @@ public: virtual bool file_exists(const String &p_path); ///< return true if a file exists virtual uint64_t _get_modified_time(const String &p_file) { return 0; } + virtual uint32_t _get_unix_permissions(const String &p_file) { return 0; } + virtual Error _set_unix_permissions(const String &p_file, uint32_t p_permissions) { return FAILED; } //static void make_default(); diff --git a/platform/android/file_access_jandroid.h b/platform/android/file_access_jandroid.h index 4f02fea81d..9429100d65 100644 --- a/platform/android/file_access_jandroid.h +++ b/platform/android/file_access_jandroid.h @@ -74,6 +74,8 @@ public: static void setup(jobject p_io); virtual uint64_t _get_modified_time(const String &p_file) { return 0; } + virtual uint32_t _get_unix_permissions(const String &p_file) { return 0; } + virtual Error _set_unix_permissions(const String &p_file, uint32_t p_permissions) { return FAILED; } FileAccessJAndroid(); ~FileAccessJAndroid(); |