Added a new function SetFilePermissions to set permissions of a file. I'm not sure about the Windows implementation. See this feature request: https://bugs.alliedmods.net/show_bug.cgi?id=6152

This commit is contained in:
Andrew
2014-06-21 00:45:07 -04:00
parent 210759907d
commit f3299b2c8c
3 changed files with 85 additions and 0 deletions
+9
View File
@@ -376,6 +376,15 @@ native bool:RemoveDir(const String:path[]);
*/
native bool:CreateDirectory(const String:path[], mode);
/**
* Changes a file or directories permissions.
*
* @param path Path to the file.
* @param mode Permissions to set.
* @return True on success, false otherwise.
*/
native bool:SetFilePermissions(const String:path[], mode);
/**
* Returns a file timestamp as a unix timestamp.
*