Lines Matching refs:directory
74 // Windows CE doesn't have a current directory. You should not use
75 // the current directory in tests on Windows CE, but this at least
97 // Returns the current working directory, or "" if unsuccessful.
100 // Windows CE doesn't have a current directory, so we just return
140 // Returns a copy of the FilePath with the directory part removed.
142 // FilePath("file"). If there is no directory part ("just_a_file"), it returns
151 // RemoveFileName returns the directory path with the filename removed.
168 // Helper functions for naming files in a directory for xml output.
170 // Given directory = "dir", base_name = "test", number = 0,
174 FilePath FilePath::MakeFileName(const FilePath& directory,
184 return ConcatPaths(directory, FilePath(file));
187 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
189 FilePath FilePath::ConcatPaths(const FilePath& directory,
191 if (directory.IsEmpty())
193 const FilePath dir(directory.RemoveTrailingPathSeparator());
199 // either a file, directory, or whatever.
212 // Returns true if pathname describes a directory in the file-system
217 // Don't strip off trailing separator if path is a root directory on
242 // Returns true if pathname describes a root directory. (Windows has one
243 // root directory per disk drive.)
247 // \\server\share can be a root directory, although it cannot be the
248 // current directory. Handle this properly.
270 // will be directory/base_name.extension or
271 // directory/base_name_<number>.extension if directory/base_name.extension
277 FilePath FilePath::GenerateUniqueFileName(const FilePath& directory,
283 full_pathname.Set(MakeFileName(directory, base_name, number++, extension));
289 // it is intended to represent a directory. Returns false otherwise.
290 // This does NOT check that a directory (or file) actually exists.
312 // Create the directory so that path exists. Returns true if successful or
313 // if the directory already exists; returns false if unable to create the
314 // directory for any reason, including if the parent directory does not
329 return this->DirectoryExists(); // An error is OK if the directory exists.