Lines Matching refs:Path
27 static bool IsFile(const std::string &Path, const DWORD &FileAttributes) {
36 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING,
40 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(),
48 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(),
63 bool IsFile(const std::string &Path) {
64 DWORD Att = GetFileAttributesA(Path.c_str());
68 Path.c_str(), GetLastError());
72 return IsFile(Path, Att);
81 std::string Path(Dir);
82 assert(!Path.empty());
83 if (Path.back() != '\\')
84 Path.push_back('\\');
85 Path.push_back('*');
89 HANDLE FindHandle(FindFirstFileA(Path.c_str(), &FindInfo));
138 void RemoveFile(const std::string &Path) {
139 _unlink(Path.c_str());
261 if (!FileLen) { // Path ended in separator.