| #pragma once | |
| #include "globals.h" | |
| #include "OS.h" | |
| #define PATH_SEPARATOR_WIN_A "\\" | |
| #define PATH_SEPARETOR_WIN_W "\\\0" | |
| #define PATH_SEPARATOR_NIX_A "/" | |
| #define PATH_SEPARATOR_NIX_W "/\0" | |
| #ifdef WINDOWS | |
| //whoops. unicode problem | |
| #define PATH_SEPARATOR PATH_SEPARATOR_WIN_A | |
| #else | |
| #define PATH_SEPARATOR PATH_SEPARATOR_NIX_A | |
| #endif | |
| class Path | |
| { | |
| private: | |
| // Path(void) = 0; | |
| // ~Path(void) = 0; | |
| public: | |
| static STRING Combine(STRING path1, STRING path2); | |
| public: | |
| static STRING GetFileFolder(STRING filePath); | |
| public: | |
| static bool IsDirectory(STRING path); | |
| static STRING GetFileDirectory(STRING filePath); | |
| }; |