MiKTeX 23.10-next
A scalable TeX distribution
|
#include <miktex/Core/Directory.h>
Public Member Functions | |
Directory (const Directory &other)=delete | |
Directory & | operator= (const Directory &other)=delete |
Directory (Directory &&other)=delete | |
Directory & | operator= (Directory &&other)=delete |
Static Public Member Functions | |
static void | Create (const MiKTeX::Util::PathName &path) |
static MiKTeX::Util::PathName | GetCurrent () |
static void | SetCurrent (const MiKTeX::Util::PathName &path) |
static void | Delete (const MiKTeX::Util::PathName &path) |
static void | Delete (const MiKTeX::Util::PathName &path, bool recursive) |
static void | Copy (const MiKTeX::Util::PathName &source, const MiKTeX::Util::PathName &dest, DirectoryCopyOptionSet options) |
static bool | Exists (const MiKTeX::Util::PathName &path) |
static void | SetTimes (const MiKTeX::Util::PathName &path, time_t creationTime, time_t lastAccessTime, time_t lastWriteTime) |
static void | Move (const MiKTeX::Util::PathName &source, const MiKTeX::Util::PathName &dest) |
static void | RemoveEmptyDirectoryChain (const MiKTeX::Util::PathName &path) |
Directory class.
This is a static class which offers directory operations.
|
static |
Copies a directory.
source | The file system path to the source directory. |
dest | The file system path to the destination directory. |
options | Copy options. |
|
static |
Creates a new directory.
path | File system path to the directory. |
|
static |
Deletes a directory.
path | File system path to the directory. |
|
static |
Deletes a directory.
path | File system path to the directory. |
recursive | Indicates, whether sub-directories shall be removed. |
|
static |
Tests if a directory exists.
File | system path to the directory. |
|
static |
Gets the current (working) directory.
Returns | the current directory. |
|
static |
Renames (moves) a directory.
source | The file system path to the source directory. |
dest | The file system path to the destination directory. |
|
static |
Sets the current (working) directory.
path | File system path to the directory. |
|
static |
Sets directory timestamps.
path | The file system path to the directory. |
creationTime | Creation timestamp. |
lastAccessTime | Last access timestamp. |
lastWriteTime | Last modification timestamp. |