Searched refs:dir_path (Results 1 – 4 of 4) sorted by relevance
59 WARN_UNUSED bool RemoveDirectory(const std::string& dir_path) { in RemoveDirectory() argument60 if (!OS::DirectoryExists(dir_path.c_str())) { in RemoveDirectory()65 if (nftw(dir_path.c_str(), NftwCleanUpCallback, kMaxDescriptors, FTW_DEPTH | FTW_MOUNT) != 0) { in RemoveDirectory()66 LOG(ERROR) << "Failed to clean-up '" << dir_path << "'"; in RemoveDirectory()70 if (rmdir(dir_path.c_str()) != 0) { in RemoveDirectory()74 LOG(WARNING) << "Failed to delete '" << dir_path << "'"; in RemoveDirectory()
30 WARN_UNUSED bool RemoveDirectory(const std::string& dir_path);42 WARN_UNUSED bool GetUsedSpace(const std::string& dir_path, uint64_t* bytes);
71 for (const auto& dir_path : dir_paths) { in TEST_F() local72 ASSERT_EQ(0, mkdir(dir_path.c_str(), S_IRWXU)); in TEST_F()90 for (const auto& dir_path : dir_paths) { in TEST_F() local91 ASSERT_FALSE(OS::DirectoryExists(dir_path.c_str())); in TEST_F()
341 def recurse(dir_path): argument343 for name, fsobj in sorted(self._provider.read_dir(dir_path).items(), key=lambda p: p[0]):346 path = os.path.join(dir_path, name)