Home
last modified time | relevance | path

Searched refs:ignore_if_missing (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/cmds/installd/
Dutils.h130 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing = false);
131 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing = false);
134 int rename_delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing = true);
143 bool ignore_if_missing = false);
Dutils.cpp649 int delete_dir_contents(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents() argument
650 return delete_dir_contents(pathname.c_str(), 0, nullptr, ignore_if_missing); in delete_dir_contents()
653 int delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing) { in delete_dir_contents_and_dir() argument
654 return delete_dir_contents(pathname.c_str(), 1, nullptr, ignore_if_missing); in delete_dir_contents_and_dir()
660 bool ignore_if_missing) in delete_dir_contents() argument
667 if (ignore_if_missing && (errno == ENOENT)) { in delete_dir_contents()
703 bool ignore_if_missing) { in rename_delete_dir_contents() argument
710 if (ignore_if_missing && (errno == ENOENT)) { in rename_delete_dir_contents()
717 return delete_dir_contents(dir_to_delete, 1, exclusion_predicate, ignore_if_missing); in rename_delete_dir_contents()
728 int rename_delete_dir_contents_and_dir(const std::string& pathname, bool ignore_if_missing) { in rename_delete_dir_contents_and_dir() argument
[all …]