Public Types | |
using | StringEnumerablePtr = SharedPtr< Collections::Generic::IEnumerable< String > > |
An alias for a shared pointer to IEnumerable object that enumerates over a set of String objects. More... | |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API void | CreateDirectory_ (const String &path) |
static ASPOSECPP_SHARED_API void | Delete (const String &path, bool recursive=false) |
static ASPOSECPP_SHARED_API StringEnumerablePtr | EnumerateDirectories (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
static ASPOSECPP_SHARED_API StringEnumerablePtr | EnumerateFiles (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
static StringEnumerablePtr | EnumerateFileSystemEntries (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
static ASPOSECPP_SHARED_API ArrayPtr< String > | GetDirectories (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
static ASPOSECPP_SHARED_API ArrayPtr< String > | GetFiles (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
static ASPOSECPP_SHARED_API ArrayPtr< String > | GetFileSystemEntries (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
static ASPOSECPP_SHARED_API ArrayPtr< String > | GetLogicalDrives () |
static ASPOSECPP_SHARED_API bool | Exists (const String &path) |
static ASPOSECPP_SHARED_API DateTime | GetCreationTime (const String &path) |
static ASPOSECPP_SHARED_API DateTime | GetCreationTimeUtc (const String &path) |
static ASPOSECPP_SHARED_API DateTime | GetLastAccessTime (const String &path) |
static ASPOSECPP_SHARED_API DateTime | GetLastAccessTimeUtc (const String &path) |
static ASPOSECPP_SHARED_API DateTime | GetLastWriteTime (const String &path) |
static ASPOSECPP_SHARED_API DateTime | GetLastWriteTimeUtc (const String &path) |
static ASPOSECPP_SHARED_API void | SetCreationTime (const String &path, DateTime date) |
static ASPOSECPP_SHARED_API void | SetCreationTimeUtc (const String &path, DateTime date) |
static ASPOSECPP_SHARED_API void | SetLastAccessTime (const String &path, DateTime date) |
static ASPOSECPP_SHARED_API void | SetLastAccessTimeUtc (const String &path, DateTime date) |
static ASPOSECPP_SHARED_API void | SetLastWriteTime (const String &path, DateTime date) |
static ASPOSECPP_SHARED_API void | SetLastWriteTimeUtc (const String &path, DateTime date) |
static ASPOSECPP_SHARED_API String | GetCurrentDirectory () |
Returns the full name (including path) of the current directory. More... | |
static ASPOSECPP_SHARED_API String | GetDirectoryRoot (const String &path) |
static ASPOSECPP_SHARED_API DirectoryInfoPtr | GetParent (const String &path) |
static ASPOSECPP_SHARED_API void | Move (const String &sourceDirName, const String &destDirName) |
static ASPOSECPP_SHARED_API void | SetCurrentDirectory (const String &path) |
Contains methods for manipulating directories. This is a static type with no instance services. You should never create instances of it by any means.
using System::IO::Directory::StringEnumerablePtr = SharedPtr<Collections::Generic::IEnumerable<String> > |
An alias for a shared pointer to IEnumerable object that enumerates over a set of String objects.
|
static |
Creates all directories in the specified path if those don't exist.
path | The path containing the directories to create |
|
static |
Removes the specified file or directory. Does not throw.
path | The path to the directory or file to be removed |
recursive | If path specifies a non-empty directory then recursive specifies if if all directory's content should be removed recursively; if the directory specified by path is not empty and recursive is 'false' then the operation fails |
|
static |
Searches for the directories that satisfy the specified search criteria either in the specified directory or in the whole directory tree rooted in the specified directory.
path | Full or relative path to the directory to search in |
searchPattern | The name pattern of the directories to search for |
searchOption | Specifies whether the search has to be performed in the specified directory only or in the whole directory tree rooted in the specified directory |
searchPattern
|
static |
Searches for the files that satisfy the specified search criteria either in the specified directory or in the whole directory tree rooted in the specified directory.
path | Full or relative path to the directory to search in |
searchPattern | The name pattern of the files to search for |
searchOption | Specifies whether the search has to be performed in the specified directory only or in the whole directory tree rooted in the specified directory |
searchPattern
|
static |
Searches for the files and directories that satisfy the specified search criteria either in the specified directory or in the whole directory tree rooted in the specified directory.
path | Full or relative path to the directory to search in |
searchPattern | The name pattern of the files and directories to search for |
searchOption | Specifies whether the search has to be performed in the specified directory only or in the whole directory tree rooted in the specified directory |
searchPattern
|
static |
Determines if the specified path refers to existing directory.
path | The path to check |
|
static |
Returns the creation time of the specified entity as local time.
path | The entity whose creating time to retrieve |
|
static |
Returns the creation time of the specified entity as UTC time.
path | The entity whose creating time to retrieve |
|
static |
Returns the full name (including path) of the current directory.
|
static |
Searches for the directories that satisfy the specified search criteria either in the specified directory or in the whole directory tree rooted in the specified directory.
path | Full or relative path to the directory to search in |
searchPattern | The name pattern of the directories to search for |
searchOption | Specifies whether the search has to be performed in the specified directory only or in the whole directory tree rooted in the specified directory |
searchPattern
|
static |
Returns the root directory of the specified path.
path | A path from which a root directory is to be obtained |
path
|
static |
Searches for the files that satisfy the specified search criteria either in the specified directory or in the whole directory tree rooted in the specified directory.
path | Full or relative path to the directory to search in |
searchPattern | The name pattern of the files to search for |
searchOption | Specifies whether the search has to be performed in the specified directory only or in the whole directory tree rooted in the specified directory |
searchPattern
|
static |
Searches for the files and directories that satisfy the specified search criteria either in the specified directory or in the whole directory tree rooted in the specified directory.
path | Full or relative path to the directory to search in |
searchPattern | The name pattern of the files and directories to search for |
searchOption | Specifies whether the search has to be performed in the specified directory only or in the whole directory tree rooted in the specified directory |
searchPattern
|
static |
Returns the last access time of the specified entity as local time.
path | The entity whose last access time to retrieve |
|
static |
Returns the last access time of the specified entity as UTC time.
path | The entity whose last access time to retrieve |
|
static |
Returns the last write time of the specified entity as local time.
path | The entity whose last write time to retrieve |
|
static |
Returns the last write time of the specified entity as UTC time.
path | The entity whose last write time to retrieve |
NOT IMPLEMENTED
IOException | Always |
|
static |
Returns a shared pointer to DirectoryInfo object representing the parent directory of the specified entity.
path | The path to the entity whose parent is to be obtained |
path
|
static |
Moves the specified entity to the new location. If the entity to move is a directory, it is moved with all its content.
sourceDirName | A directory or file to move |
destDirName | The new location of sourceDirName |
|
static |
Sets the creation time of the specified entity as local time.
path | The entity whose creating time to set |
date | A DateTime object representing the time to set as local time |
|
static |
Sets the creation time of the specified entity as UTC time.
path | The entity whose creating time to set |
date | A DateTime object representing the time to set as UTC time |
|
static |
Sets the current directory.
path | The path to the directory to make current |
|
static |
Sets the last access time of the specified entity as local time.
path | The entity whose last access time to set |
date | A DateTime object representing the time to set as local time |
|
static |
Sets the last access time of the specified entity as UTC time.
path | The entity whose last access time to set |
date | A DateTime object representing the time to set as UTC time |
|
static |
Sets the last write time of the specified entity as local time.
path | The entity whose last write time to set |
date | A DateTime object representing the time to set as local time |
|
static |
Sets the last write time of the specified entity as UTC time.
path | The entity whose last write time to set |
date | A DateTime object representing the time to set as UTC time |