Home
last modified time | relevance | path

Searched refs:dir_path (Results 1 – 4 of 4) sorted by relevance

/art/odrefresh/
Dodr_fs_utils.cc59 WARN_UNUSED bool RemoveDirectory(const std::string& dir_path) { in RemoveDirectory() argument
60 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()
Dodr_fs_utils.h30 WARN_UNUSED bool RemoveDirectory(const std::string& dir_path);
42 WARN_UNUSED bool GetUsedSpace(const std::string& dir_path, uint64_t* bytes);
Dodr_fs_utils_test.cc71 for (const auto& dir_path : dir_paths) { in TEST_F() local
72 ASSERT_EQ(0, mkdir(dir_path.c_str(), S_IRWXU)); in TEST_F()
90 for (const auto& dir_path : dir_paths) { in TEST_F() local
91 ASSERT_FALSE(OS::DirectoryExists(dir_path.c_str())); in TEST_F()
/art/build/apex/
Dart_apex_test.py341 def recurse(dir_path): argument
343 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)