CSharpTest.Net
FileUtils Class Members
See Also  Methods  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Utils Namespace : FileUtils Class


Glossary Item Box

The following tables list the members exposed by FileUtils.

Public Methods

 NameDescription
Public Methodstatic (Shared in Visual Basic)ExpandEnvironmentExpands environment variables into text, i.e. SystemRoot, or ProgramFiles  
Public Methodstatic (Shared in Visual Basic)FindFullPathReturns the fully qualified path to the file if it is fully-qualified, exists in the current directory, or in the environment path, otherwise generates a FileNotFoundException exception.  
Public Methodstatic (Shared in Visual Basic)GetPermissionsReturns the rights assigned to the given SID for this file's ACL  
Public Methodstatic (Shared in Visual Basic)GrantFullControlForFileOverloaded. Grants the user FullControl for the file, returns true if modified, false if already present  
Public Methodstatic (Shared in Visual Basic)IsValidExtensionReturns true if the extension provided contains only one '.' at the beginning of the string and does not contain any path or invalid filename characters.  
Public Methodstatic (Shared in Visual Basic)IsValidFileNameReturns true if the name provided contains only valid filename characters  
Public Methodstatic (Shared in Visual Basic)MakeRelativePathFor this to work for a directory the argument should end with a '\' character  
Public Methodstatic (Shared in Visual Basic)MakeValidFileNameOverloaded. Creates a valid filename by removing all invalid characters.  
Public Methodstatic (Shared in Visual Basic)ReplacePermissionsRemoves any existing access for the user SID supplied and adds the specified rights  
Public Methodstatic (Shared in Visual Basic)TrySearchPathReturns true if the file is fully-qualified, exists in the current directory, or in the environment path, otherwise generates a FileNotFoundException exception. Will not propagate errors.  
Top

See Also

Generated with Document! X 2011 by Innovasys