• Home
  • Raw
  • Download

Lines Matching refs:FilePath

94 bool VerifySpecificPathControlledByUser(const FilePath& path,  in VerifySpecificPathControlledByUser()
142 FilePath* out_next_path, in AdvanceEnumeratorWithStat()
180 bool DoCopyDirectory(const FilePath& from_path, in DoCopyDirectory()
181 const FilePath& to_path, in DoCopyDirectory()
196 FilePath real_to_path = to_path; in DoCopyDirectory()
204 FilePath real_from_path = MakeAbsoluteFilePath(from_path); in DoCopyDirectory()
218 FilePath current = from_path; in DoCopyDirectory()
224 FilePath from_path_base = from_path; in DoCopyDirectory()
239 FilePath target_path(to_path); in DoCopyDirectory()
337 FilePath MakeAbsoluteFilePath(const FilePath& input) { in MakeAbsoluteFilePath()
341 return FilePath(); in MakeAbsoluteFilePath()
342 return FilePath(full_path); in MakeAbsoluteFilePath()
349 bool DeleteFile(const FilePath& path, bool recursive) { in DeleteFile()
368 for (FilePath current = traversal.Next(); !current.empty(); in DeleteFile()
377 FilePath dir = FilePath(directories.top()); in DeleteFile()
384 bool ReplaceFile(const FilePath& from_path, in ReplaceFile()
385 const FilePath& to_path, in ReplaceFile()
395 bool CopyDirectory(const FilePath& from_path, in CopyDirectory()
396 const FilePath& to_path, in CopyDirectory()
401 bool CopyDirectoryExcl(const FilePath& from_path, in CopyDirectoryExcl()
402 const FilePath& to_path, in CopyDirectoryExcl()
457 bool PathExists(const FilePath& path) { in PathExists()
468 bool PathIsWritable(const FilePath& path) { in PathIsWritable()
474 bool DirectoryExists(const FilePath& path) { in DirectoryExists()
496 int CreateAndOpenFdForTemporaryFileInDir(const FilePath& directory, in CreateAndOpenFdForTemporaryFileInDir()
497 FilePath* path) { in CreateAndOpenFdForTemporaryFileInDir()
508 bool CreateSymbolicLink(const FilePath& target_path, in CreateSymbolicLink()
509 const FilePath& symlink_path) { in CreateSymbolicLink()
516 bool ReadSymbolicLink(const FilePath& symlink_path, FilePath* target_path) { in ReadSymbolicLink()
527 *target_path = FilePath(FilePath::StringType(buf, count)); in ReadSymbolicLink()
531 bool GetPosixFilePermissions(const FilePath& path, int* mode) { in GetPosixFilePermissions()
545 bool SetPosixFilePermissions(const FilePath& path, in SetPosixFilePermissions()
566 const FilePath::StringType& executable) { in ExecutableExistsInPath()
575 FilePath file(cur_path); in ExecutableExistsInPath()
588 bool GetTempDir(FilePath* path) { in GetTempDir()
591 *path = FilePath(tmp); in GetTempDir()
598 *path = FilePath("/data/local/tmp"); in GetTempDir()
601 *path = FilePath("/tmp"); in GetTempDir()
608 FilePath GetHomeDir() { in GetHomeDir()
613 return FilePath("/"); in GetHomeDir()
619 return FilePath(home_dir); in GetHomeDir()
625 FilePath rv; in GetHomeDir()
630 return FilePath("/tmp"); in GetHomeDir()
634 bool CreateTemporaryFile(FilePath* path) { in CreateTemporaryFile()
636 FilePath directory; in CreateTemporaryFile()
646 FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir, FilePath* path) { in CreateAndOpenTemporaryFileInDir()
657 bool CreateTemporaryFileInDir(const FilePath& dir, FilePath* temp_file) { in CreateTemporaryFileInDir()
663 static bool CreateTemporaryDirInDirImpl(const FilePath& base_dir, in CreateTemporaryDirInDirImpl()
664 const FilePath::StringType& name_tmpl, in CreateTemporaryDirInDirImpl()
665 FilePath* new_dir) { in CreateTemporaryDirInDirImpl()
667 DCHECK(name_tmpl.find("XXXXXX") != FilePath::StringType::npos) in CreateTemporaryDirInDirImpl()
670 FilePath sub_dir = base_dir.Append(name_tmpl); in CreateTemporaryDirInDirImpl()
680 *new_dir = FilePath(dtemp); in CreateTemporaryDirInDirImpl()
684 bool CreateTemporaryDirInDir(const FilePath& base_dir, in CreateTemporaryDirInDir()
685 const FilePath::StringType& prefix, in CreateTemporaryDirInDir()
686 FilePath* new_dir) { in CreateTemporaryDirInDir()
687 FilePath::StringType mkdtemp_template = prefix; in CreateTemporaryDirInDir()
692 bool CreateNewTempDirectory(const FilePath::StringType& prefix, in CreateNewTempDirectory()
693 FilePath* new_temp_path) { in CreateNewTempDirectory()
694 FilePath tmpdir; in CreateNewTempDirectory()
701 bool CreateDirectoryAndGetError(const FilePath& full_path, in CreateDirectoryAndGetError()
704 std::vector<FilePath> subpaths; in CreateDirectoryAndGetError()
707 FilePath last_path = full_path; in CreateDirectoryAndGetError()
709 for (FilePath path = full_path.DirName(); in CreateDirectoryAndGetError()
716 for (std::vector<FilePath>::reverse_iterator i = subpaths.rbegin(); in CreateDirectoryAndGetError()
736 bool NormalizeFilePath(const FilePath& path, FilePath* normalized_path) { in NormalizeFilePath()
737 FilePath real_path_result = MakeAbsoluteFilePath(path); in NormalizeFilePath()
752 bool IsLink(const FilePath& file_path) { in IsLink()
761 bool GetFileInfo(const FilePath& file_path, File::Info* results) { in GetFileInfo()
782 FILE* OpenFile(const FilePath& filename, const char* mode) { in OpenFile()
819 int ReadFile(const FilePath& filename, char* data, int max_size) { in ReadFile()
831 int WriteFile(const FilePath& filename, const char* data, int size) { in WriteFile()
860 bool AppendToFile(const FilePath& filename, const char* data, int size) { in AppendToFile()
883 bool GetCurrentDirectory(FilePath* dir) { in GetCurrentDirectory()
892 *dir = FilePath(system_buffer); in GetCurrentDirectory()
896 bool SetCurrentDirectory(const FilePath& path) { in SetCurrentDirectory()
901 bool VerifyPathControlledByUser(const FilePath& base, in VerifyPathControlledByUser()
902 const FilePath& path, in VerifyPathControlledByUser()
911 std::vector<FilePath::StringType> base_components; in VerifyPathControlledByUser()
912 std::vector<FilePath::StringType> path_components; in VerifyPathControlledByUser()
917 std::vector<FilePath::StringType>::const_iterator ib, ip; in VerifyPathControlledByUser()
927 FilePath current_path = base; in VerifyPathControlledByUser()
941 bool VerifyPathControlledByAdmin(const FilePath& path) { in VerifyPathControlledByAdmin()
943 const FilePath kFileSystemRoot("/"); in VerifyPathControlledByAdmin()
971 int GetMaximumPathComponentLength(const FilePath& path) { in GetMaximumPathComponentLength()
984 bool GetShmemTempDir(bool executable, FilePath* path) { in GetShmemTempDir()
994 IsPathExecutable(FilePath("/dev/shm")); in GetShmemTempDir()
998 *path = FilePath("/dev/shm"); in GetShmemTempDir()
1008 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile()
1035 bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path) { in MoveUnsafe()
1063 BASE_EXPORT bool IsPathExecutable(const FilePath& path) { in IsPathExecutable()
1065 FilePath tmp_file_path; in IsPathExecutable()