Lines Matching refs:FilePath
52 BASE_API bool EndsWithSeparator(const FilePath& path);
56 BASE_API bool EnsureEndsWithSeparator(FilePath* path);
60 BASE_API bool AbsolutePath(FilePath* path);
64 BASE_API bool ContainsPath(const FilePath& parent, const FilePath& child);
77 BASE_API int CountFilesCreatedAfter(const FilePath& path,
85 BASE_API int64 ComputeDirectorySize(const FilePath& root_path);
93 BASE_API int64 ComputeFilesSize(const FilePath& directory,
94 const FilePath::StringType& pattern);
104 BASE_API bool Delete(const FilePath& path, bool recursive);
112 BASE_API bool DeleteAfterReboot(const FilePath& path);
119 BASE_API bool Move(const FilePath& from_path, const FilePath& to_path);
126 BASE_API bool ReplaceFile(const FilePath& from_path, const FilePath& to_path);
129 BASE_API bool CopyFile(const FilePath& from_path, const FilePath& to_path);
138 BASE_API bool CopyDirectory(const FilePath& from_path, const FilePath& to_path,
143 BASE_API bool PathExists(const FilePath& path);
146 BASE_API bool PathIsWritable(const FilePath& path);
149 BASE_API bool DirectoryExists(const FilePath& path);
165 BASE_API bool ContentsEqual(const FilePath& filename1,
166 const FilePath& filename2);
170 BASE_API bool TextContentsEqual(const FilePath& filename1,
171 const FilePath& filename2);
177 BASE_API bool ReadFileToString(const FilePath& path, std::string* contents);
187 bool CreateSymbolicLink(const FilePath& target, const FilePath& symlink);
191 bool ReadSymbolicLink(const FilePath& symlink, FilePath* target);
199 BASE_API bool ResolveShortcut(FilePath* path);
247 BASE_API bool CopyAndDeleteDirectory(const FilePath& from_path,
248 const FilePath& to_path);
252 BASE_API bool IsDirectoryEmpty(const FilePath& dir_path);
257 BASE_API bool GetTempDir(FilePath* path);
260 BASE_API bool GetShmemTempDir(FilePath* path);
264 BASE_API FilePath GetHomeDir();
269 BASE_API bool CreateTemporaryFile(FilePath* path);
272 BASE_API bool CreateTemporaryFileInDir(const FilePath& dir,
273 FilePath* temp_file);
278 BASE_API FILE* CreateAndOpenTemporaryFile(FilePath* path);
280 BASE_API FILE* CreateAndOpenTemporaryShmemFile(FilePath* path);
282 BASE_API FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir,
283 FilePath* path);
289 BASE_API bool CreateNewTempDirectory(const FilePath::StringType& prefix,
290 FilePath* new_temp_path);
295 BASE_API bool CreateTemporaryDirInDir(const FilePath& base_dir,
296 const FilePath::StringType& prefix,
297 FilePath* new_dir);
302 BASE_API bool CreateDirectory(const FilePath& full_path);
305 BASE_API bool GetFileSize(const FilePath& file_path, int64* file_size);
308 BASE_API bool IsDot(const FilePath& path);
311 BASE_API bool IsDotDot(const FilePath& path);
319 BASE_API bool NormalizeFilePath(const FilePath& path, FilePath* real_path);
326 BASE_API bool NormalizeToNativeFilePath(const FilePath& path,
327 FilePath* nt_path);
331 BASE_API bool GetFileInfo(const FilePath& file_path,
335 BASE_API bool TouchFile(const FilePath& path,
340 BASE_API bool SetLastModifiedTime(const FilePath& path,
345 bool GetInode(const FilePath& path, ino_t* inode);
349 BASE_API FILE* OpenFile(const FilePath& filename, const char* mode);
360 BASE_API int ReadFile(const FilePath& filename, char* data, int size);
364 BASE_API int WriteFile(const FilePath& filename, const char* data, int size);
371 BASE_API bool GetCurrentDirectory(FilePath* path);
374 BASE_API bool SetCurrentDirectory(const FilePath& path);
448 FileEnumerator(const FilePath& root_path,
451 FileEnumerator(const FilePath& root_path,
454 const FilePath::StringType& pattern);
458 FilePath Next();
466 static FilePath GetFilename(const FindInfo& find_info);
470 bool ShouldSkip(const FilePath& path);
480 FilePath filename;
486 const FilePath& source, bool show_links);
495 FilePath root_path_;
498 FilePath::StringType pattern_; // Empty when we want to find everything.
502 std::stack<FilePath> pending_paths_;
518 bool Initialize(const FilePath& file_name);
526 bool InitializeAsImageSection(const FilePath& file_name);
537 bool MapFileToMemory(const FilePath& file_name);
563 const FilePath& source_file_path,
564 const FilePath& target_file_path);
573 inline bool MakeFileUnreadable(const FilePath& path) { in MakeFileUnreadable()
650 bool GetFileSystemType(const FilePath& path, FileSystemType* type);