Lines Matching full:path
42 // Returns an absolute version of a relative path. Returns an empty path on
43 // error. On POSIX, this function fails if the path does not exist. This
48 // If the path does not exist the function returns 0.
54 // Deletes the given path, whether it's a file or a directory.
61 // In posix environment and if |path| is a symbolic link, this deletes only
66 bool DeleteFile(const FilePath& path, bool recursive);
69 // Schedules to delete the given path, whether it's a file or a directory, until
74 bool DeleteFileAfterReboot(const FilePath& path);
87 // Returns true if the given path exists on the local filesystem,
89 bool PathExists(const FilePath& path);
91 // Returns true if the given path is writable by the user, false otherwise.
92 bool PathIsWritable(const FilePath& path);
94 // Returns true if the given path exists and is a directory, false otherwise.
95 bool DirectoryExists(const FilePath& path);
105 // Reads the file at |path| into |contents| and returns true on success and
106 // false on error. For security reasons, a |path| containing path traversal
112 bool ReadFileToString(const FilePath& path, std::string* contents);
114 // Reads the file at |path| into |contents| and returns true on success and
115 // false on error. For security reasons, a |path| containing path traversal
123 bool ReadFileToStringWithMaxSize(const FilePath& path,
132 FilePath* path);
164 // Reads the permission of the given |path|, storing the file permission
165 // bits in |mode|. If |path| is symbolic link, |mode| is the permission of
167 bool GetPosixFilePermissions(const FilePath& path, int* mode);
168 // Sets the permission of the given |path|. If |path| is symbolic link, sets
170 bool SetPosixFilePermissions(const FilePath& path, int mode);
183 bool GetTempDir(FilePath* path);
186 // |temp_file| is populated with the full path to the created file.
192 // If success, return true and output the full path of the directory created.
216 // Sets |real_path| to |path| with symbolic links and junctions expanded.
217 // On windows, make sure the path starts with a lettered drive.
218 // |path| must reference a file. Function will fail if |path| points to
219 // a directory or to a nonexistent path. On windows, this function will
220 // fail if |path| is a junction or symlink that points to an empty file,
222 bool NormalizeFilePath(const FilePath& path, FilePath* real_path);
226 // Given a path in NT native form ("\Device\HarddiskVolumeXX\..."),
227 // return in |drive_letter_path| the equivalent path that starts with
228 // a drive letter ("C:\..."). Return false if no such path exists.
232 // Given an existing file in |path|, set |real_path| to the path
234 // Returns false if the path can not be found. Empty files cannot
236 bool NormalizeToNativeFilePath(const FilePath& path, FilePath* nt_path);
242 // Returns information about the given file path.
280 bool GetCurrentDirectory(FilePath* path);
283 bool SetCurrentDirectory(const FilePath& path);
285 // Attempts to find a number that can be appended to the |path| to make it
286 // unique. If |path| does not exist, 0 is returned. If it fails to find such
289 int GetUniquePathNumber(const FilePath& path,
309 // Test that |path| can only be changed by a given user and members of
311 // Specifically, test that all parts of |path| under (and including) |base|:
319 // |base| must contain |path|.
321 const base::FilePath& path,
327 // Is |path| writable only by a user with administrator privileges?
330 // Testing that |path|, and every parent directory including the root of
333 // Will return false if |path| does not exist.
334 bool VerifyPathControlledByAdmin(const base::FilePath& path);
337 // Returns the maximum length of path component on the volume containing
338 // the directory |path|, in the number of FilePath::CharType, or -1 on failure.
339 int GetMaximumPathComponentLength(const base::FilePath& path);
356 // Attempts determine the FileSystemType for |path|.
357 // Returns false if |path| doesn't exist.
358 bool GetFileSystemType(const FilePath& path, FileSystemType* type);