Add GetFilePermissions (#2177)

Co-authored-by: Kenzzer <[email protected]>
This commit is contained in:
Benoist
2024-06-08 14:17:50 +00:00
committed by GitHub
co-authored by Kenzzer
parent 0e4b1ca4cf
commit 11d3cf94f7
2 changed files with 43 additions and 0 deletions
+9
View File
@@ -601,6 +601,15 @@ native bool CreateDirectory(const char[] path, int mode=FPERM_O_READ|FPERM_O_EXE
*/
native bool SetFilePermissions(const char[] path, int mode);
/**
* Retrieves a file or directories permissions.
*
* @param path Path to the file.
* @param mode Variable to store the permissions in.
* @return True on success, false otherwise.
*/
native bool GetFilePermissions(const char[] path, int &mode);
/**
* Returns a file timestamp as a unix timestamp.
*