Home | History | Annotate | Download | only in src

Lines Matching refs:directory

69 // Windows CE doesn't have a current directory. You should not use
70 // the current directory in tests on Windows CE, but this at least
84 // Returns the current working directory, or "" if unsuccessful.
87 // Windows CE doesn't have a current directory, so we just return
111 // Returns a copy of the FilePath with the directory part removed.
113 // FilePath("file"). If there is no directory part ("just_a_file"), it returns
122 // RemoveFileName returns the directory path with the filename removed.
139 // Helper functions for naming files in a directory for xml output.
141 // Given directory = "dir", base_name = "test", number = 0,
145 FilePath FilePath::MakeFileName(const FilePath& directory,
155 return ConcatPaths(directory, FilePath(file));
158 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
160 FilePath FilePath::ConcatPaths(const FilePath& directory,
162 if (directory.IsEmpty())
164 const FilePath dir(directory.RemoveTrailingPathSeparator());
170 // either a file, directory, or whatever.
183 // Returns true if pathname describes a directory in the file-system
188 // Don't strip off trailing separator if path is a root directory on
213 // Returns true if pathname describes a root directory. (Windows has one
214 // root directory per disk drive.)
218 // \\server\share can be a root directory, although it cannot be the
219 // current directory. Handle this properly.
241 // will be directory/base_name.extension or
242 // directory/base_name_<number>.extension if directory/base_name.extension
248 FilePath FilePath::GenerateUniqueFileName(const FilePath& directory,
254 full_pathname.Set(MakeFileName(directory, base_name, number++, extension));
260 // it is intended to represent a directory. Returns false otherwise.
261 // This does NOT check that a directory (or file) actually exists.
282 // Create the directory so that path exists. Returns true if successful or
283 // if the directory already exists; returns false if unable to create the
284 // directory for any reason, including if the parent directory does not
299 return this->DirectoryExists(); // An error is OK if the directory exists.