This class contains the file utility functions.
Declaration Syntax| C# | Visual Basic | Visual C++ |
public static class FileUtils
Public NotInheritable Class FileUtils
public ref class FileUtils abstract sealed
Members| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
![]() ![]() | ApplicationDirectory |
Return the Application directory name or the virtual directory path
|
![]() ![]() | CopyFiles(String, String) |
Copy all the files and sub directories in a new folder. Read only file will be replaced with the new
one.
|
![]() ![]() | CreateDirectory(String) |
Create a directory if it does not exist.
|
![]() ![]() | DeleteDirectory(String, Boolean, Boolean, Boolean, Boolean, array<String>[]()[], array<String>[]()[]) |
Delete a directory and all it's sub drectories if aRecursive and aDeleteSubDirectories aRecursive
true. If aRecursive is true but aDeleteSubDirectories, only the file in the subdirectories are deleted.
|
![]() ![]() | FileIsHidden(String) |
Return true if the file is hidden
|
![]() ![]() | FileIsReadOnly(String) |
Return true if the file is read only
|
![]() ![]() | FileIsValid(String) |
Return true if the file exists and it's size is greater than 0.
|
![]() ![]() | GetAssemblyVersion(Assembly) |
Return the file version from an assembly
|
![]() ![]() | GetDirectorySize(String, Boolean) |
Return the size of a directory
|
![]() ![]() | GetFileVersion(String) |
Return the file version for a specific file name.
|
![]() ![]() | GetRelativePath(String) |
Return the relative path from the current directory.
|
![]() ![]() | GetRelativePath(String, String) |
Return a relative path from a root path.
|
![]() ![]() | GetShortPath(String) |
Return the short path form for a specific path
|
![]() ![]() | IncludeTraillingSlash(String) |
Add a backslash to a path if it's does not end with.
|
![]() ![]() | SetFileReadOnly(String, Boolean) |
Change the readonly attribut to a file.
|
![]() ![]() | ValidateFileName(String) |
Return true if the name is valid (the name, not the file)
|
Inheritance Hierarchy| Object | |
![]() | FileUtils |
Assembly: Devolutions.Utils (Module: Devolutions.Utils)



