Class Directory

Class Documentation

class Directory

Public Static Functions

static void FindAllFiles(TCHAR const *directoryName, FindAllFilesCallback callback, TCHAR const *pattern = nullptr, void *userData = nullptr)
static TCHAR const *GetDocumentsFolder(void)

Returns the GPA folder in the user's documents folder.

static TCHAR const *GetPreferencesFolder(void)

Returns the preferences folder for GPA.

static TCHAR const *GetApplicationSupportFolder(void)

Returns the application support folder for GPA.

static bool MakeDirectoryRecursive(TCHAR const *path)

Recursive creates the directory given by path.

Parameters

path -- The directory path. Requires a trailing /.

Returns

true on success, false otherwise

static void DeleteEntry(TCHAR const *directory, TCHAR const *fileName)

Deletes specified file from directory.

static void DeleteDirectory(TCHAR const *directory)

Deletes specified directory.

static TCHAR const *GetTempDirectory()

Provides system temp directory.

static TCHAR const *GetDirectoryForPath(TCHAR const *path, TCHAR *parentDirectory, int parentDirectoryLength)

Write the directory containing the path to a given input buffer.

static void GetCurrentExecutableDirectory(TCHAR *path, size_t pathSize)

Get path to current executable's location in the filesystem.