Home
last modified time | relevance | path

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

/device/google/cuttlefish/common/libs/utils/
Dfiles.h29 bool FileExists(const std::string& path, bool follow_symlinks = true);
41 bool DirectoryExists(const std::string& path, bool follow_symlinks = true);
Dfiles.cpp80 bool FileExists(const std::string& path, bool follow_symlinks) { in FileExists() argument
82 return (follow_symlinks ? stat : lstat)(path.c_str(), &st) == 0; in FileExists()
160 bool DirectoryExists(const std::string& path, bool follow_symlinks) { in DirectoryExists() argument
162 if ((follow_symlinks ? stat : lstat)(path.c_str(), &st) == -1) { in DirectoryExists()