• Home
  • Raw
  • Download

Lines Matching refs:FilePath

49 BASE_EXPORT FilePath MakeAbsoluteFilePath(const FilePath& input);
56 BASE_EXPORT int64_t ComputeDirectorySize(const FilePath& root_path);
70 BASE_EXPORT bool DeleteFile(const FilePath& path, bool recursive);
78 BASE_EXPORT bool DeleteFileAfterReboot(const FilePath& path);
86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path);
94 BASE_EXPORT bool ReplaceFile(const FilePath& from_path,
95 const FilePath& to_path,
118 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
129 BASE_EXPORT bool CopyDirectory(const FilePath& from_path,
130 const FilePath& to_path,
135 BASE_EXPORT bool CopyDirectoryExcl(const FilePath& from_path,
136 const FilePath& to_path,
141 BASE_EXPORT bool PathExists(const FilePath& path);
144 BASE_EXPORT bool PathIsWritable(const FilePath& path);
147 BASE_EXPORT bool DirectoryExists(const FilePath& path);
151 BASE_EXPORT bool ContentsEqual(const FilePath& filename1,
152 const FilePath& filename2);
156 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
157 const FilePath& filename2);
166 BASE_EXPORT bool ReadFileToString(const FilePath& path, std::string* contents);
177 BASE_EXPORT bool ReadFileToStringWithMaxSize(const FilePath& path,
191 BASE_EXPORT int CreateAndOpenFdForTemporaryFileInDir(const FilePath& dir,
192 FilePath* path);
200 BASE_EXPORT bool CreateSymbolicLink(const FilePath& target,
201 const FilePath& symlink);
205 BASE_EXPORT bool ReadSymbolicLink(const FilePath& symlink, FilePath* target);
228 BASE_EXPORT bool GetPosixFilePermissions(const FilePath& path, int* mode);
231 BASE_EXPORT bool SetPosixFilePermissions(const FilePath& path, int mode);
236 const FilePath::StringType& executable);
244 BASE_EXPORT bool IsPathExecutable(const FilePath& path);
250 BASE_EXPORT bool IsDirectoryEmpty(const FilePath& dir_path);
258 BASE_EXPORT bool GetTempDir(FilePath* path);
266 BASE_EXPORT FilePath GetHomeDir();
271 BASE_EXPORT bool CreateTemporaryFile(FilePath* path);
274 BASE_EXPORT bool CreateTemporaryFileInDir(const FilePath& dir,
275 FilePath* temp_file);
280 BASE_EXPORT FILE* CreateAndOpenTemporaryFile(FilePath* path);
283 BASE_EXPORT FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir,
284 FilePath* path);
290 BASE_EXPORT bool CreateNewTempDirectory(const FilePath::StringType& prefix,
291 FilePath* new_temp_path);
296 BASE_EXPORT bool CreateTemporaryDirInDir(const FilePath& base_dir,
297 const FilePath::StringType& prefix,
298 FilePath* new_dir);
305 BASE_EXPORT bool CreateDirectoryAndGetError(const FilePath& full_path,
309 BASE_EXPORT bool CreateDirectory(const FilePath& full_path);
312 BASE_EXPORT bool GetFileSize(const FilePath& file_path, int64_t* file_size);
320 BASE_EXPORT bool NormalizeFilePath(const FilePath& path, FilePath* real_path);
327 BASE_EXPORT bool DevicePathToDriveLetterPath(const FilePath& device_path,
328 FilePath* drive_letter_path);
334 BASE_EXPORT bool NormalizeToNativeFilePath(const FilePath& path,
335 FilePath* nt_path);
339 BASE_EXPORT bool IsLink(const FilePath& file_path);
342 BASE_EXPORT bool GetFileInfo(const FilePath& file_path, File::Info* info);
345 BASE_EXPORT bool TouchFile(const FilePath& path,
352 BASE_EXPORT FILE* OpenFile(const FilePath& filename, const char* mode);
367 BASE_EXPORT int ReadFile(const FilePath& filename, char* data, int max_size);
371 BASE_EXPORT int WriteFile(const FilePath& filename, const char* data,
382 BASE_EXPORT bool AppendToFile(const FilePath& filename,
387 BASE_EXPORT bool GetCurrentDirectory(FilePath* path);
390 BASE_EXPORT bool SetCurrentDirectory(const FilePath& path);
396 BASE_EXPORT int GetUniquePathNumber(const FilePath& path,
397 const FilePath::StringType& suffix);
427 BASE_EXPORT bool VerifyPathControlledByUser(const base::FilePath& base,
428 const base::FilePath& path,
441 BASE_EXPORT bool VerifyPathControlledByAdmin(const base::FilePath& path);
446 BASE_EXPORT int GetMaximumPathComponentLength(const base::FilePath& path);
465 BASE_EXPORT bool GetFileSystemType(const FilePath& path, FileSystemType* type);
474 BASE_EXPORT bool GetShmemTempDir(bool executable, FilePath* path);
483 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path,
484 const FilePath& to_path);
491 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
492 const FilePath& to_path);