00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __D_FILE_FUNCTIONS__
00024 #define __D_FILE_FUNCTIONS__
00025
00026 #pragma once
00027
00028 #include <vector>
00029 #include <string>
00030
00031 namespace DUtils {
00032
00034 class FileFunctions
00035 {
00036 public:
00037
00042 static void MkDir(const char *path);
00043
00048 static void RmDir(const char *path);
00049
00054 static void RmFile(const char *path);
00055
00060 static bool DirExists(const char *path);
00061
00066 static bool FileExists(const char *filename);
00067
00076 static std::vector<std::string> Dir(const char *path, const char *right,
00077 bool sorted = false);
00078
00084 static std::string FileName(const std::string filepath);
00085
00093 static void FileParts(const std::string filepath, std::string &path,
00094 std::string &filename, std::string &ext);
00095
00096 };
00097
00098 }
00099
00100 #endif