Lines Matching refs:file
48 auto file = dir + "/" + entry->d_name; in RemoveFilesInDir() local
49 if (unlink(file.c_str()) == -1) { in RemoveFilesInDir()
50 return ErrnoError() << "unlink() failed for " << file; in RemoveFilesInDir()
95 Result<uint64_t> GetFileTimeStamp(const std::string& file) { in GetFileTimeStamp() argument
97 int result = stat(file.c_str(), &st); in GetFileTimeStamp()
105 bool FileExists(const std::string& file) { in FileExists() argument
107 return stat(file.c_str(), &st) == 0 ? true : false; in FileExists()
110 bool FileNonZeroSize(const std::string& file) { in FileNonZeroSize() argument
112 return stat(file.c_str(), &st) == 0 ? st.st_size > 0 : false; in FileNonZeroSize()
119 for (const auto& file : files) { in GetFilesDigest() local
120 std::ifstream stream(file, std::ios::binary); in GetFilesDigest()
122 return Error() << "Failed to open " << file; in GetFilesDigest()
129 return Error() << "Failed to read " << file; in GetFilesDigest()