BuildMaster SDK Reference
Version:
FileEx Class
A set of static utility methods used for files without the MAX_PATH limitation.
Syntax
public
class
FileEx
Methods
|
Name |
Description |
|
Copy(string sourceFileName, string targetFileName, bool overwrite)
|
Copies a file.
|
|
CreateSymbolicLink(string linkFileName, string targetFileName)
|
Creates a symbolic link to a file.
|
|
Delete(string path)
|
Deletes a file if it exists.
|
|
Exists(string path)
|
Returns a value indicating whether a file exists.
|
|
GetAttributes(string path)
|
Returns the attributes of the specified file.
|
|
GetInfo(string path)
|
Returns a SlimFileInfo representing the file at the specified path.
|
|
Move(string sourceFileName, string targetFileName, bool overwrite)
|
Moves a file.
|
|
Open(string fileName, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess, System.IO.FileShare fileShare)
|
Opens or creates the specified file.
|
|
Open(string fileName, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess, System.IO.FileShare fileShare, System.IO.FileOptions fileOptions)
|
Opens or creates the specified file.
|
|
SetAttributes(string path, System.IO.FileAttributes attributes)
|
Sets the attributes of the specified file.
|
|
SetLastWriteTime(string path, System.DateTime date)
|
Sets the last write time of the file.
|