diff options
| author | Marcelo Fernandez | 2017-09-17 14:40:58 -0300 |
|---|---|---|
| committer | Marcelo Fernandez | 2017-09-17 14:40:58 -0300 |
| commit | 3528b1e571dee24917b0141232f135e29bf088ba (patch) | |
| tree | 1994ea234d7c52dac02084242671348844bed3fc /drivers/unix/file_access_unix.cpp | |
| parent | 574a5714dcbf5fcf126f3f99caab62a345e665c1 (diff) | |
| download | godot-3528b1e571dee24917b0141232f135e29bf088ba.tar.gz godot-3528b1e571dee24917b0141232f135e29bf088ba.tar.zst godot-3528b1e571dee24917b0141232f135e29bf088ba.zip | |
Diffstat (limited to 'drivers/unix/file_access_unix.cpp')
| -rw-r--r-- | drivers/unix/file_access_unix.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp index 80565c5b0..e19bc738c 100644 --- a/drivers/unix/file_access_unix.cpp +++ b/drivers/unix/file_access_unix.cpp @@ -274,6 +274,15 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) { }; } +Error FileAccessUnix::_chmod(const String &p_path, int p_mod) { + int err = chmod(p_path.utf8().get_data(), p_mod); + if (!err) { + return OK; + } + + return FAILED; +} + FileAccess *FileAccessUnix::create_libc() { return memnew(FileAccessUnix); |
