Lines Matching refs:path
50 void UnlinkIfExists(std::string_view path) { in UnlinkIfExists() argument
52 std::filesystem::remove(path, ec); in UnlinkIfExists()
54 LOG(WARNING) << ART_FORMAT("Failed to remove file '{}': {}", path, ec.message()); in UnlinkIfExists()
60 Result<std::unique_ptr<NewFile>> NewFile::Create(const std::string& path, in Create() argument
62 std::unique_ptr<NewFile> output_file(new NewFile(path, fs_permission)); in Create()
254 Result<std::unique_ptr<File>> OpenFileForReading(const std::string& path) { in OpenFileForReading() argument
255 std::unique_ptr<File> file(OS::OpenFileForReading(path.c_str())); in OpenFileForReading()
257 return ErrnoErrorf("Failed to open file '{}'", path); in OpenFileForReading()
271 Result<void> Chown(const std::string& path, const FsPermission& fs_permission) { in Chown() argument
279 if (chown(path.c_str(), fs_permission.uid, fs_permission.gid) != 0) { in Chown()
280 return ErrnoErrorf("Failed to chown '{}'", path); in Chown()