DirectoryHelperCheckPermissions Method (String, Boolean, Boolean, Boolean, Boolean) |
Check write permissions.
Namespace: CMS.IOAssembly: CMS.IO (in CMS.IO.dll) Version: 13.0.131
Syntax public static bool CheckPermissions(
string path,
bool checkRead,
bool checkWrite,
bool checkModify,
bool checkDelete
)
Parameters
- path
- Type: SystemString
Directory path - checkRead
- Type: SystemBoolean
If read permissions should be checked - checkWrite
- Type: SystemBoolean
If write permissions should be checked - checkModify
- Type: SystemBoolean
If modify permissions should be checked - checkDelete
- Type: SystemBoolean
If delete permissions should be checked
Return Value
Type:
BooleanRemarks Permissions are checked only on Windows platform. The check passes by default on other platforms.
See Also