Home | History | Annotate | Download | only in base

Lines Matching full:pathname

33 class Pathname;
55 virtual bool Iterate(const Pathname &path);
97 // Returns a DirectoryIterator for a given pathname.
107 virtual FileStream *OpenFile(const Pathname &filename,
117 virtual bool CreatePrivateFile(const Pathname &filename) = 0;
122 virtual bool DeleteFile(const Pathname &filename) = 0;
128 virtual bool DeleteEmptyFolder(const Pathname &folder) = 0;
133 virtual bool DeleteFolderContents(const Pathname &folder);
137 virtual bool DeleteFolderAndContents(const Pathname &folder) {
144 bool DeleteFileOrFolder(const Pathname &path) {
153 virtual bool CreateFolder(const Pathname &pathname) = 0;
160 virtual bool MoveFolder(const Pathname &old_path,
161 const Pathname &new_path) = 0;
168 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0;
172 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) {
183 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0;
186 bool CopyFolder(const Pathname &old_path, const Pathname &new_path);
188 bool CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) {
195 // Returns true if pathname refers to a directory
196 virtual bool IsFolder(const Pathname& pathname) = 0;
198 // Returns true if pathname refers to a file
199 virtual bool IsFile(const Pathname& pathname) = 0;
201 // Returns true if pathname refers to no filesystem object, every parent
203 virtual bool IsAbsent(const Pathname& pathname) = 0;
205 // Returns true if pathname represents a temporary location on the system.
206 virtual bool IsTemporaryPath(const Pathname& pathname) = 0;
210 virtual bool GetTemporaryFolder(Pathname &path, bool create,
213 virtual std::string TempFilename(const Pathname &dir,
217 virtual bool GetFileSize(const Pathname& path, size_t* size) = 0;
220 virtual bool GetFileTime(const Pathname& path, FileTimeType which,
226 virtual bool GetAppPathname(Pathname* path) = 0;
231 virtual bool GetAppDataFolder(Pathname* path, bool per_user) = 0;
237 virtual bool GetAppTempFolder(Pathname* path) = 0;
242 virtual bool GetDiskFreeSpace(const Pathname& path, int64 *freebytes) = 0;
245 virtual Pathname GetCurrentDirectory() = 0;
291 static bool CreateFolder(const Pathname &pathname) {
292 return EnsureDefaultFilesystem()->CreateFolder(pathname);
295 static FileStream *OpenFile(const Pathname &filename,
300 static bool CreatePrivateFile(const Pathname &filename) {
304 static bool DeleteFile(const Pathname &filename) {
308 static bool DeleteEmptyFolder(const Pathname &folder) {
312 static bool DeleteFolderContents(const Pathname &folder) {
316 static bool DeleteFolderAndContents(const Pathname &folder) {
320 static bool MoveFolder(const Pathname &old_path, const Pathname &new_path) {
324 static bool MoveFile(const Pathname &old_path, const Pathname &new_path) {
328 static bool CopyFolder(const Pathname &old_path, const Pathname &new_path) {
332 static bool CopyFile(const Pathname &old_path, const Pathname &new_path) {
336 static bool IsFolder(const Pathname& pathname) {
337 return EnsureDefaultFilesystem()->IsFolder(pathname);
340 static bool IsFile(const Pathname &pathname) {
341 return EnsureDefaultFilesystem()->IsFile(pathname);
344 static bool IsAbsent(const Pathname &pathname) {
345 return EnsureDefaultFilesystem()->IsAbsent(pathname);
348 static bool IsTemporaryPath(const Pathname& pathname) {
349 return EnsureDefaultFilesystem()->IsTemporaryPath(pathname);
352 static bool GetTemporaryFolder(Pathname &path, bool create,
357 static std::string TempFilename(const Pathname &dir,
362 static bool GetFileSize(const Pathname& path, size_t* size) {
366 static bool GetFileTime(const Pathname& path, FileTimeType which,
371 static bool GetAppPathname(Pathname* path) {
375 static bool GetAppDataFolder(Pathname* path, bool per_user) {
379 static bool GetAppTempFolder(Pathname* path) {
387 static bool GetDiskFreeSpace(const Pathname& path, int64 *freebytes) {
392 // Pathname by value.
393 static Pathname GetCurrentDirectory();
437 bool CreateUniqueFile(Pathname& path, bool create_empty);