Contains methods for manipulating directories. This is a static type with no instance services. You should never create instances of it by any means.
More...
|
static void | CreateDirectory_ (const String &path) |
| Creates all directories in the specified path if those don't exist. More...
|
|
static void | Delete (const String &path, bool recursive=false) |
| Removes the specified file or directory. Does not throw. More...
|
|
static StringEnumerablePtr | EnumerateDirectories (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
| 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. More...
|
|
static StringEnumerablePtr | EnumerateFiles (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
| 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. More...
|
|
static StringEnumerablePtr | EnumerateFileSystemEntries (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
| 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. More...
|
|
static ArrayPtr< String > | GetDirectories (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
| 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. More...
|
|
static ArrayPtr< String > | GetFiles (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
| 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. More...
|
|
static ArrayPtr< String > | GetFileSystemEntries (const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly) |
| 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. More...
|
|
static ArrayPtr< String > | GetLogicalDrives () |
| NOT IMPLEMENTED. More...
|
|
static bool | Exists (const String &path) |
| Determines if the specified path refers to existing directory. More...
|
|
static DateTime | GetCreationTime (const String &path) |
| Returns the creation time of the specified entity as local time. More...
|
|
static DateTime | GetCreationTimeUtc (const String &path) |
| Returns the creation time of the specified entity as UTC time. More...
|
|
static DateTime | GetLastAccessTime (const String &path) |
| Returns the last access time of the specified entity as local time. More...
|
|
static DateTime | GetLastAccessTimeUtc (const String &path) |
| Returns the last access time of the specified entity as UTC time. More...
|
|
static DateTime | GetLastWriteTime (const String &path) |
| Returns the last write time of the specified entity as local time. More...
|
|
static DateTime | GetLastWriteTimeUtc (const String &path) |
| Returns the last write time of the specified entity as UTC time. More...
|
|
static void | SetCreationTime (const String &path, DateTime date) |
| Sets the creation time of the specified entity as local time. More...
|
|
static void | SetCreationTimeUtc (const String &path, DateTime date) |
| Sets the creation time of the specified entity as UTC time. More...
|
|
static void | SetLastAccessTime (const String &path, DateTime date) |
| Sets the last access time of the specified entity as local time. More...
|
|
static void | SetLastAccessTimeUtc (const String &path, DateTime date) |
| Sets the last access time of the specified entity as UTC time. More...
|
|
static void | SetLastWriteTime (const String &path, DateTime date) |
| Sets the last write time of the specified entity as local time. More...
|
|
static void | SetLastWriteTimeUtc (const String &path, DateTime date) |
| Sets the last write time of the specified entity as UTC time. More...
|
|
static String | GetCurrentDirectory () |
| Returns the full name (including path) of the current directory. More...
|
|
static String | GetDirectoryRoot (const String &path) |
| Returns the root directory of the specified path. More...
|
|
static DirectoryInfoPtr | GetParent (const String &path) |
| Returns a shared pointer to DirectoryInfo object representing the parent directory of the specified entity. More...
|
|
static void | Move (const String &sourceDirName, const String &destDirName) |
| Moves the specified entity to the new location. If the entity to move is a directory, it is moved with all its content. More...
|
|
static void | SetCurrentDirectory (const String &path) |
| Sets the current directory. More...
|
|
Contains methods for manipulating directories. This is a static type with no instance services. You should never create instances of it by any means.
#include "system/io/directory.h"
#include "system/io/path.h"
#include "system/string.h"
#include <iostream>
{
}
int main()
{
PrintMessage(discPath);
PrintMessage(directoryPath);
PrintMessage(tempPath);
std::cout <<
return 0;
}
static bool Exists(const String &path)
Determines if the specified path refers to existing directory.
static DateTime GetLastWriteTime(const String &path)
Returns the last write time of the specified entity as local time.
static DateTime GetCreationTime(const String &path)
Returns the creation time of the specified entity as local time.
static DateTime GetLastAccessTime(const String &path)
Returns the last access time of the specified entity as local time.
static String GetTempPath()
Returns the path of the current user's temporary directory.
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122