Merge pull request #43 from hlstriker/master

Added a new function SetFilePermissions to set permissions of a file (r=psychonic).
This commit is contained in:
Nicholas Hastings
2014-08-16 10:02:09 -04:00
2 changed files with 49 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.
*