The FileUtility type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FileUtility |
Constructor
|
Methods
Name | Description | |
---|---|---|
AddDirectorySecurity |
Adds an ACL entry on the specified directory for the specified account.
|
|
CheckDirectorySecurityRights |
Adds an ACL entry on the specified directory for the specified account.
|
|
CheckFileExtension |
Checks if file extensions are valid (valid extensions are defined in the user.config).
|
|
CheckFileSecurityRights |
Adds an ACL entry on the specified file for the specified account.
|
|
CheckFolderVisibility(String) |
Checks if the folder should be shown in the admin panels depending on its prefix (App_Themes, App_Code, bin, etc)
|
|
CheckFolderVisibility(String, array<String>[]()[][]) |
Checks if the folder should be shown in the admin panels depending on its prefix (App_Themes, App_Code, bin, etc)
|
|
CopyDirectory |
Copies directory from source to destination path, with optional flag that specified if the copy process should be recursive.
|
|
CreateNewDirectory |
Creates a new directory.
|
|
DecodePath |
Decodes the path encoded by the EncodePath method.
|
|
DeleteFiles |
Used to delete multiple files using the filenamePattern.
|
|
DeleteRelatedFiles |
Deletes all files that share the same "root" name (without extension). Used when deleting upload files attached to notes an similar entities that have related thumbnails.
|
|
DirectoryDelete |
Deletes a directory.
|
|
DirectoryRename |
Renames a directory.
|
|
EncodePath |
Encodes paths so they are suitable for treeview and similar controls.
|
|
FileDelete |
Deletes a file.
|
|
FileRename |
Renames a file.
|
|
FindTemplateFolders |
Returns an array of template folder names.
|
|
FindThemeFolders |
Returns an array of theme folder names.
|
|
FreeDirectoryCopy |
Copies the directory. If the destPathString is already taken, creates a unique file name.
|
|
FreeDirectoryMove |
Moves the directory. If the destPathString is already taken, creates a unique file name.
|
|
FreeFileCopy(String, String) |
Copies the file. If the destFileName already exists creates a unique destination file name.
|
|
FreeFileCopy(String, String, String) |
Copies the file, chooses the new file name that is not already taken, passing the template name for the new file (used when creating new pages).
|
|
FreeFileMove |
Moves the file. If the destFileName is already taken, creates a unique file name.
|
|
GetFileExtension |
Gets a file extension. Depending on a provider, full file-system file names do not have to be used, so this is checked manually.
|
|
GetFileOrFolderName |
Returns the file of folder name ONLY from the full folder path.
|
|
GetSystemTemplatesFolders |
Returns an array of system templates folders that in most cases should be excluded from UI listings.
|
|
GetSystemThemeFolders |
Returns an array of system theme folders that in most cases should be excluded from UI listings.
|
|
IsPhysicalPath |
Checks if the path is physical (format like "c:\something") or virtual
|
|
MoveDirectory |
Moves directory from source to destination path, with optional flag that specified if the copy process should be recursive.
|
|
PhysicalPathToUrl |
Returns an URL that matches the physical path that is passed as a parameter.
|
|
RemoveDirectorySecurity |
Removes an ACL entry on the specified directory for the specified account.
|
|
RemoveInvalidPathChars |
Removed invalid path characters including the MapPath invalid characters.
|
|
StringToStreamReader |
Converts string to StreamReader
|
|
UrlToPhysicalPath |
Gets a physical path from the URL that is passed as a parameter.
|
Extension Methods
Name | Description | |
---|---|---|
ConvertTo(Type) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)()()()() | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)(TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
GetCurrentStackTrace |
Gets current stack trace information.
(Defined by ObjectExtension.) |
|
GetDebugInformation |
Gets the debug information for currently executing code.
(Defined by ObjectExtension.) |
|
GetExecutingMethodName |
Gets the executing method name.
(Defined by ObjectExtension.) |
|
GetPropertyType |
Gets a property type.
(Defined by ObjectExtension.) |
|
GetPropertyValue |
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.) |
|
PropertyExists |
Check if property exists.
(Defined by ObjectExtension.) |
|
SetPropertyValue |
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.) |