Searched refs:ignore_if_missing (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/installd/ |
D | utils.h | 105 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing = false); 106 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing = false); 111 bool ignore_if_missing = false);
|
D | utils.cpp | 370 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents() argument 371 return delete_dir_contents(pathname.c_str(), 0, NULL, ignore_if_missing); in delete_dir_contents() 374 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents_and_dir() argument 375 return delete_dir_contents(pathname.c_str(), 1, NULL, ignore_if_missing); in delete_dir_contents_and_dir() 381 bool ignore_if_missing) in delete_dir_contents() argument 388 if (ignore_if_missing && (errno == ENOENT)) { in delete_dir_contents()
|