The FileUtility type exposes the following members.

Methods

  Name Description
Public method Static member AddDirectorySecurity
Adds an ACL entry on the specified directory for the specified account.
Public method Static member CheckDirectorySecurityRights
Adds an ACL entry on the specified directory for the specified account.
Public method Static member CheckFileExtension
Checks if file extensions are valid (valid extensions are defined in the user.config).
Public method Static member CheckFileSecurityRights
Adds an ACL entry on the specified file for the specified account.
Public method Static member CheckFolderVisibility(String)
Checks if the folder should be shown in the admin panels depending on its prefix (App_Themes, App_Code, bin, etc)
Public method Static member 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)
Public method Static member CopyDirectory
Copies directory from source to destination path, with optional flag that specified if the copy process should be recursive.
Public method Static member CreateNewDirectory
Creates a new directory.
Public method Static member DecodePath
Decodes the path encoded by the EncodePath method.
Public method Static member DeleteFiles
Used to delete multiple files using the filenamePattern.
Public method Static member 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.
Public method Static member DirectoryDelete
Deletes a directory.
Public method Static member DirectoryRename
Renames a directory.
Public method Static member EncodePath
Encodes paths so they are suitable for treeview and similar controls.
Public method Static member FileDelete
Deletes a file.
Public method Static member FileRename
Renames a file.
Public method Static member FindTemplateFolders
Returns an array of template folder names.
Public method Static member FindThemeFolders
Returns an array of theme folder names.
Public method Static member FreeDirectoryCopy
Copies the directory. If the destPathString is already taken, creates a unique file name.
Public method Static member FreeDirectoryMove
Moves the directory. If the destPathString is already taken, creates a unique file name.
Public method Static member FreeFileCopy(String, String)
Copies the file. If the destFileName already exists creates a unique destination file name.
Public method Static member 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).
Public method Static member FreeFileMove
Moves the file. If the destFileName is already taken, creates a unique file name.
Public method Static member 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.
Public method Static member GetFileOrFolderName
Returns the file of folder name ONLY from the full folder path.
Public method Static member GetSystemTemplatesFolders
Returns an array of system templates folders that in most cases should be excluded from UI listings.
Public method Static member GetSystemThemeFolders
Returns an array of system theme folders that in most cases should be excluded from UI listings.
Public method Static member IsPhysicalPath
Checks if the path is physical (format like "c:\something") or virtual
Public method Static member MoveDirectory
Moves directory from source to destination path, with optional flag that specified if the copy process should be recursive.
Public method Static member PhysicalPathToUrl
Returns an URL that matches the physical path that is passed as a parameter.
Public method Static member RemoveDirectorySecurity
Removes an ACL entry on the specified directory for the specified account.
Public method Static member RemoveInvalidPathChars
Removed invalid path characters including the MapPath invalid characters.
Public method Static member StringToStreamReader
Converts string to StreamReader
Public method Static member UrlToPhysicalPath
Gets a physical path from the URL that is passed as a parameter.

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

See Also