Searched refs:ignore_if_missing (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/installd/ |
D | utils.h | 108 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing = false); 109 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing = false); 114 bool ignore_if_missing = false);
|
D | utils.cpp | 375 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents() argument 376 return delete_dir_contents(pathname.c_str(), 0, NULL, ignore_if_missing); in delete_dir_contents() 379 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents_and_dir() argument 380 return delete_dir_contents(pathname.c_str(), 1, NULL, ignore_if_missing); in delete_dir_contents_and_dir() 386 bool ignore_if_missing) in delete_dir_contents() argument 393 if (ignore_if_missing && (errno == ENOENT)) { in delete_dir_contents()
|