C# Class Common.Security.FilePermissionHelper

File permission helper
ファイルを表示 Open project: rabbal/Mvc5

Public Methods

Method Description
CheckPermissions ( string path, bool checkRead, bool checkWrite, bool checkModify, bool checkDelete ) : bool

Check permissions

GetDirectoriesWrite ( ) : IEnumerable

Gets a list of directories (physical paths) which require write permission

GetFilesWrite ( ) : IEnumerable

Gets a list of files (physical paths) which require write permission

Method Details

CheckPermissions() public static method

Check permissions
public static CheckPermissions ( string path, bool checkRead, bool checkWrite, bool checkModify, bool checkDelete ) : bool
path string Path
checkRead bool Check read
checkWrite bool Check write
checkModify bool Check modify
checkDelete bool Check delete
return bool

GetDirectoriesWrite() public static method

Gets a list of directories (physical paths) which require write permission
public static GetDirectoriesWrite ( ) : IEnumerable
return IEnumerable

GetFilesWrite() public static method

Gets a list of files (physical paths) which require write permission
public static GetFilesWrite ( ) : IEnumerable
return IEnumerable