Lines Matching refs:string

29 bool FileExists(const std::string& path, bool follow_symlinks = true);
30 Result<dev_t> FileDeviceId(const std::string& path);
31 Result<bool> CanHardLink(const std::string& source,
32 const std::string& destination);
33 Result<ino_t> FileInodeNumber(const std::string& path);
34 Result<bool> AreHardLinked(const std::string& source,
35 const std::string& destination);
36 Result<std::string> CreateHardLink(const std::string& target,
37 const std::string& hardlink,
39 bool FileHasContent(const std::string& path);
40 Result<std::vector<std::string>> DirectoryContents(const std::string& path);
41 bool DirectoryExists(const std::string& path, bool follow_symlinks = true);
42 Result<void> EnsureDirectoryExists(const std::string& directory_path,
45 const std::string& group_name = "");
46 Result<void> ChangeGroup(const std::string& path,
47 const std::string& group_name);
48 bool CanAccess(const std::string& path, const int mode);
49 bool IsDirectoryEmpty(const std::string& path);
50 Result<void> RecursivelyRemoveDirectory(const std::string& path);
51 bool Copy(const std::string& from, const std::string& to);
52 off_t FileSize(const std::string& path);
53 bool RemoveFile(const std::string& file);
54 Result<std::string> RenameFile(const std::string& current_filepath,
55 const std::string& target_filepath);
56 std::string ReadFile(const std::string& file);
57 Result<std::string> ReadFileContents(const std::string& filepath);
58 bool MakeFileExecutable(const std::string& path);
59 std::chrono::system_clock::time_point FileModificationTime(const std::string& path);
60 std::string cpp_dirname(const std::string& str);
61 std::string cpp_basename(const std::string& str);
63 bool FileIsSocket(const std::string& path);
66 int GetDiskUsage(const std::string& path);
69 std::string FindImage(const std::string& search_path,
70 const std::vector<std::string>& pattern);
75 std::string AbsolutePath(const std::string& path);
77 std::string CurrentDirectory();
83 FileSizes SparseFileSizes(const std::string& path);
87 std::string FindFile(const std::string& path, const std::string& target_name);
90 const std::string& dir,
91 const std::function<bool(const std::string&)>& callback);
94 Result<void> WaitForFile(const std::string& path, int timeoutSec);
95 Result<void> WaitForUnixSocket(const std::string& path, int timeoutSec);
96 Result<void> WaitForUnixSocketListeningWithoutConnect(const std::string& path,
105 std::optional<std::string> current_working_dir;
109 std::optional<std::string> home_dir;
110 std::string path_to_convert;
125 Result<std::string> EmulateAbsolutePath(const InputPathForm& path_info);