Home | History | Annotate | Download | only in files

Lines Matching full: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,
103 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
115 BASE_EXPORT bool CopyDirectory(const FilePath& from_path,
116 const FilePath& to_path,
121 BASE_EXPORT bool PathExists(const FilePath& path);
124 BASE_EXPORT bool PathIsWritable(const FilePath& path);
127 BASE_EXPORT bool DirectoryExists(const FilePath& path);
131 BASE_EXPORT bool ContentsEqual(const FilePath& filename1,
132 const FilePath& filename2);
136 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
137 const FilePath& filename2);
146 BASE_EXPORT bool ReadFileToString(const FilePath& path, std::string* contents);
157 BASE_EXPORT bool ReadFileToString(const FilePath& path,
170 BASE_EXPORT bool CreateSymbolicLink(const FilePath& target,
171 const FilePath& symlink);
175 BASE_EXPORT bool ReadSymbolicLink(const FilePath& symlink, FilePath* target);
198 BASE_EXPORT bool GetPosixFilePermissions(const FilePath& path, int* mode);
201 BASE_EXPORT bool SetPosixFilePermissions(const FilePath& path, int mode);
206 BASE_EXPORT bool IsDirectoryEmpty(const FilePath& dir_path);
214 BASE_EXPORT bool GetTempDir(FilePath* path);
222 BASE_EXPORT FilePath GetHomeDir();
227 BASE_EXPORT bool CreateTemporaryFile(FilePath* path);
230 BASE_EXPORT bool CreateTemporaryFileInDir(const FilePath& dir,
231 FilePath* temp_file);
236 BASE_EXPORT FILE* CreateAndOpenTemporaryFile(FilePath* path);
239 BASE_EXPORT FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir,
240 FilePath* path);
246 BASE_EXPORT bool CreateNewTempDirectory(const FilePath::StringType& prefix,
247 FilePath* new_temp_path);
252 BASE_EXPORT bool CreateTemporaryDirInDir(const FilePath& base_dir,
253 const FilePath::StringType& prefix,
254 FilePath* new_dir);
261 BASE_EXPORT bool CreateDirectoryAndGetError(const FilePath& full_path,
265 BASE_EXPORT bool CreateDirectory(const FilePath& full_path);
268 BASE_EXPORT bool GetFileSize(const FilePath& file_path, int64_t* file_size);
276 BASE_EXPORT bool NormalizeFilePath(const FilePath& path, FilePath* real_path);
283 BASE_EXPORT bool DevicePathToDriveLetterPath(const FilePath& device_path,
284 FilePath* drive_letter_path);
290 BASE_EXPORT bool NormalizeToNativeFilePath(const FilePath& path,
291 FilePath* nt_path);
295 BASE_EXPORT bool IsLink(const FilePath& file_path);
298 BASE_EXPORT bool GetFileInfo(const FilePath& file_path, File::Info* info);
301 BASE_EXPORT bool TouchFile(const FilePath& path,
306 BASE_EXPORT FILE* OpenFile(const FilePath& filename, const char* mode);
321 BASE_EXPORT int ReadFile(const FilePath& filename, char* data, int max_size);
325 BASE_EXPORT int WriteFile(const FilePath& filename, const char* data,
336 BASE_EXPORT bool AppendToFile(const FilePath& filename,
341 BASE_EXPORT bool GetCurrentDirectory(FilePath* path);
344 BASE_EXPORT bool SetCurrentDirectory(const FilePath& path);
350 BASE_EXPORT int GetUniquePathNumber(const FilePath& path,
351 const FilePath::StringType& suffix);
370 BASE_EXPORT bool VerifyPathControlledByUser(const base::FilePath& base,
371 const base::FilePath& path,
384 BASE_EXPORT bool VerifyPathControlledByAdmin(const base::FilePath& path);
388 // the directory |path|, in the number of FilePath::CharType, or -1 on failure.
389 BASE_EXPORT int GetMaximumPathComponentLength(const base::FilePath& path);
408 BASE_EXPORT bool GetFileSystemType(const FilePath& path, FileSystemType* type);
417 BASE_EXPORT bool GetShmemTempDir(bool executable, FilePath* path);
426 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path,
427 const FilePath& to_path);
434 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
435 const FilePath& to_path);