• Home
  • Raw
  • Download

Lines Matching refs:FilePath

73 BASE_EXPORT FilePath MakeAbsoluteFilePath(const FilePath& input);
85 [[nodiscard]] BASE_EXPORT std::optional<FilePath>
86 MakeAbsoluteFilePathNoResolveSymbolicLinks(const FilePath& input);
94 BASE_EXPORT int64_t ComputeDirectorySize(const FilePath& root_path);
105 BASE_EXPORT bool DeleteFile(const FilePath& path);
117 BASE_EXPORT bool DeletePathRecursively(const FilePath& path);
134 GetDeleteFileCallback(const FilePath& path,
137 GetDeletePathRecursivelyCallback(const FilePath& path,
146 BASE_EXPORT bool DeleteFileAfterReboot(const FilePath& path);
151 BASE_EXPORT bool PreventExecuteMapping(const FilePath& path);
157 const FilePath& path,
172 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path);
180 BASE_EXPORT bool ReplaceFile(const FilePath& from_path,
181 const FilePath& to_path,
204 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
221 BASE_EXPORT bool CopyDirectory(const FilePath& from_path,
222 const FilePath& to_path,
227 BASE_EXPORT bool CopyDirectoryExcl(const FilePath& from_path,
228 const FilePath& to_path,
233 BASE_EXPORT bool PathExists(const FilePath& path);
236 BASE_EXPORT bool PathIsReadable(const FilePath& path);
239 BASE_EXPORT bool PathIsWritable(const FilePath& path);
242 BASE_EXPORT bool DirectoryExists(const FilePath& path);
246 BASE_EXPORT bool ContentsEqual(const FilePath& filename1,
247 const FilePath& filename2);
251 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
252 const FilePath& filename2);
258 const FilePath& path);
267 BASE_EXPORT bool ReadFileToString(const FilePath& path, std::string* contents);
278 BASE_EXPORT bool ReadFileToStringWithMaxSize(const FilePath& path,
306 BASE_EXPORT ScopedFD CreateAndOpenFdForTemporaryFileInDir(const FilePath& dir,
307 FilePath* path);
319 BASE_EXPORT bool ReadFileToStringNonBlocking(const base::FilePath& file,
324 BASE_EXPORT bool CreateSymbolicLink(const FilePath& target,
325 const FilePath& symlink);
332 BASE_EXPORT bool ReadSymbolicLink(const FilePath& symlink, FilePath* target);
339 BASE_EXPORT std::optional<FilePath> ReadSymbolicLinkAbsolute(
340 const FilePath& symlink);
365 BASE_EXPORT bool GetPosixFilePermissions(const FilePath& path, int* mode);
368 BASE_EXPORT bool SetPosixFilePermissions(const FilePath& path, int mode);
373 const FilePath::StringType& executable);
381 BASE_EXPORT bool IsPathExecutable(const FilePath& path);
387 BASE_EXPORT bool IsDirectoryEmpty(const FilePath& dir_path);
395 BASE_EXPORT bool GetTempDir(FilePath* path);
403 BASE_EXPORT FilePath GetHomeDir();
412 BASE_EXPORT File CreateAndOpenTemporaryFileInDir(const FilePath& dir,
413 FilePath* temp_file);
420 BASE_EXPORT bool CreateTemporaryFile(FilePath* path);
425 BASE_EXPORT bool CreateTemporaryFileInDir(const FilePath& dir,
426 FilePath* temp_file);
430 BASE_EXPORT FilePath
431 FormatTemporaryFileName(FilePath::StringPieceType identifier);
439 BASE_EXPORT ScopedFILE CreateAndOpenTemporaryStream(FilePath* path);
442 BASE_EXPORT ScopedFILE CreateAndOpenTemporaryStreamInDir(const FilePath& dir,
443 FilePath* path);
459 BASE_EXPORT bool CreateNewTempDirectory(const FilePath::StringType& prefix,
460 FilePath* new_temp_path);
465 BASE_EXPORT bool CreateTemporaryDirInDir(const FilePath& base_dir,
466 FilePath::StringPieceType prefix,
467 FilePath* new_dir);
474 BASE_EXPORT bool CreateDirectoryAndGetError(const FilePath& full_path,
478 BASE_EXPORT bool CreateDirectory(const FilePath& full_path);
481 BASE_EXPORT std::optional<int64_t> GetFileSize(const FilePath& file_path);
485 const FilePath& path);
497 BASE_EXPORT bool NormalizeFilePath(const FilePath& path, FilePath* real_path);
504 BASE_EXPORT bool DevicePathToDriveLetterPath(const FilePath& device_path,
505 FilePath* drive_letter_path);
514 BASE_EXPORT FilePath MakeLongFilePath(const FilePath& input);
519 BASE_EXPORT bool CreateWinHardLink(const FilePath& to_file,
520 const FilePath& from_file);
524 BASE_EXPORT bool IsLink(const FilePath& file_path);
527 BASE_EXPORT bool GetFileInfo(const FilePath& file_path, File::Info* info);
530 BASE_EXPORT bool TouchFile(const FilePath& path,
537 BASE_EXPORT FILE* OpenFile(const FilePath& filename, const char* mode);
559 BASE_EXPORT std::optional<uint64_t> ReadFile(const FilePath& filename,
561 BASE_EXPORT std::optional<uint64_t> ReadFile(const FilePath& filename,
566 BASE_EXPORT int ReadFile(const FilePath& filename, char* data, int max_size);
571 BASE_EXPORT bool WriteFile(const FilePath& filename, span<const uint8_t> data);
575 BASE_EXPORT bool WriteFile(const FilePath& filename, std::string_view data);
597 BASE_EXPORT bool AppendToFile(const FilePath& filename,
602 BASE_EXPORT bool AppendToFile(const FilePath& filename, std::string_view data);
605 BASE_EXPORT bool GetCurrentDirectory(FilePath* path);
608 BASE_EXPORT bool SetCurrentDirectory(const FilePath& path);
617 BASE_EXPORT FilePath GetUniquePath(const FilePath& path);
623 BASE_EXPORT FilePath
624 GetUniquePathWithSuffixFormat(const FilePath& path,
657 const FilePath& file_path,
702 BASE_EXPORT bool VerifyPathControlledByUser(const base::FilePath& base,
703 const base::FilePath& path,
714 BASE_EXPORT bool VerifyPathControlledByAdmin(const base::FilePath& path);
719 BASE_EXPORT int GetMaximumPathComponentLength(const base::FilePath& path);
727 BASE_EXPORT bool GetShmemTempDir(bool executable, FilePath* path);
736 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path);
743 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
744 const FilePath& to_path);