2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Directory.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX Directory class definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
2010-12-28 01:12:19 +00:00
|
|
|
|
#ifndef _SYSTEM_IO_DIRECTORY_
|
|
|
|
|
#define _SYSTEM_IO_DIRECTORY_
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
#include "../Types.h"
|
|
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
|
{
|
|
|
|
|
class DateTime;
|
|
|
|
|
|
|
|
|
|
namespace IO
|
|
|
|
|
{
|
|
|
|
|
class DirectoryInfo;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This
|
|
|
|
|
/// class cannot be inherited.
|
|
|
|
|
/// </summary>
|
|
|
|
|
class Directory
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
Directory();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static DirectoryInfo CreateDirectory(char* path);
|
|
|
|
|
static void Delete(char* path);
|
|
|
|
|
static void Delete(char* path, bool recursive);
|
|
|
|
|
static bool Exists(char* path);
|
|
|
|
|
static DateTime GetCreationTime(const char* path);
|
|
|
|
|
static char* GetCurrentDirectory();
|
|
|
|
|
static char** GetDirectories(char* path);
|
|
|
|
|
static char** GetDirectories(char* path, char* searchPattern);
|
|
|
|
|
static char* GetDirectoryRoot(char* path);
|
|
|
|
|
static char** GetFiles(char* path);
|
|
|
|
|
static char** GetFiles(char* path, char* searchPattern);
|
|
|
|
|
static char** GetFileSystemEntries(char* path);
|
|
|
|
|
static char** GetFileSystemEntries(char* path, char* searchPattern);
|
|
|
|
|
static DateTime GetLastAccessTime(char* path);
|
|
|
|
|
static DateTime GetLastWriteTime(char* path);
|
|
|
|
|
static void Move(char* sourceDirName, char* destDirName);
|
|
|
|
|
static void SetCurrentDirectory(char* path);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-28 01:12:19 +00:00
|
|
|
|
#endif //_SYSTEM_IO_DIRECTORY_
|