Click or drag to resize

ExtensionsDirectoryInfo Class

Provides usefull extension methods for the DirectoryInfo class
Inheritance Hierarchy
SystemObject
  CauldronExtensionsDirectoryInfo

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static class ExtensionsDirectoryInfo

The ExtensionsDirectoryInfo type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCombine(DirectoryInfo, String)
Combines a DirectoryInfo and a string to a path
Public methodStatic memberCombine(DirectoryInfo, String, String)
Combines a DirectoryInfo and a string to a path
Public methodStatic memberCombine(DirectoryInfo, String, String, String)
Combines a DirectoryInfo and a string to a path
Public methodStatic memberCombine(DirectoryInfo, String, String, String, String)
Combines a DirectoryInfo and a string to a path
Public methodStatic memberCopyAsync(FileInfo, DirectoryInfo)
Creates a copy of the file in the specified folder.
Public methodStatic memberCopyAsync(FileInfo, DirectoryInfo, String)
Creates a copy of the file in the specified folder and renames the copy.
Public methodStatic memberCopyAsync(FileInfo, DirectoryInfo, String, NameCollisionOption)
Creates a copy of the file in the specified folder and renames the copy. This method also specifies what to do if a file with the same name already exists in the destination folder.
Public methodStatic memberCreateFileAsync(DirectoryInfo, String)
Creates a new file with the specified name in the current folder.
Public methodStatic memberCreateFileAsync(DirectoryInfo, String, CreationCollisionOption)
Creates a new file in the current folder. This method also specifies what to do if a file with the same name already exists in the current folder.
Public methodStatic memberCreateFolderAsync(DirectoryInfo, String)
Creates a new subfolder with the specified name in the current folder.
Public methodStatic memberCreateFolderAsync(DirectoryInfo, String, CreationCollisionOption)
Creates a new subfolder with the specified name in the current folder. This method also specifies what to do if a subfolder with the same name already exists in the current folder.
Public methodStatic memberGetFileAsync
Gets the file with the specified name from the current folder.
Public methodStatic memberGetUniqueDirectoryName
Checks if the directory name exist. If the directory already exists, an indexer will be added to the directory name to make it unique.
Public methodStatic memberToDirectoryInfo
Converts a string to a DirectoryInfo
Public methodStatic memberToFileInfo
Converts a string to a FileInfo
Top
See Also