Lines Matching refs:Path

27 static bool IsFile(const std::string &Path, const DWORD &FileAttributes) {  in IsFile()  argument
36 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, in IsFile()
40 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
48 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
63 bool IsFile(const std::string &Path) { in IsFile() argument
64 DWORD Att = GetFileAttributesA(Path.c_str()); in IsFile()
68 Path.c_str(), GetLastError()); in IsFile()
72 return IsFile(Path, Att); in IsFile()
75 std::string Basename(const std::string &Path) { in Basename() argument
76 size_t Pos = Path.find_last_of("/\\"); in Basename()
77 if (Pos == std::string::npos) return Path; in Basename()
78 assert(Pos < Path.size()); in Basename()
79 return Path.substr(Pos + 1); in Basename()
82 size_t FileSize(const std::string &Path) { in FileSize() argument
84 if (!GetFileAttributesExA(Path.c_str(), GetFileExInfoStandard, &attr)) { in FileSize()
86 Path.c_str(), GetLastError()); in FileSize()
101 std::string Path(Dir); in ListFilesInDirRecursive() local
102 assert(!Path.empty()); in ListFilesInDirRecursive()
103 if (Path.back() != '\\') in ListFilesInDirRecursive()
104 Path.push_back('\\'); in ListFilesInDirRecursive()
105 Path.push_back('*'); in ListFilesInDirRecursive()
109 HANDLE FindHandle(FindFirstFileA(Path.c_str(), &FindInfo)); in ListFilesInDirRecursive()
160 void RemoveFile(const std::string &Path) { in RemoveFile() argument
161 _unlink(Path.c_str()); in RemoveFile()