Lines Matching defs:directory
77 // Windows CE doesn't have a current directory. You should not use
78 // the current directory in tests on Windows CE, but this at least
100 // Returns the current working directory, or "" if unsuccessful.
107 // These platforms do not have a current directory, so we just return
193 // Returns a copy of the FilePath with the directory part removed.
195 // FilePath("file"). If there is no directory part ("just_a_file"), it returns
204 // RemoveFileName returns the directory path with the filename removed.
221 // Helper functions for naming files in a directory for xml output.
223 // Given directory = "dir", base_name = "test", number = 0,
227 FilePath FilePath::MakeFileName(const FilePath& directory,
237 return ConcatPaths(directory, FilePath(file));
240 // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml".
242 FilePath FilePath::ConcatPaths(const FilePath& directory,
244 if (directory.IsEmpty()) return relative_path;
245 const FilePath dir(directory.RemoveTrailingPathSeparator());
250 // either a file, directory, or whatever.
263 // Returns true if pathname describes a directory in the file-system
268 // Don't strip off trailing separator if path is a root directory on
293 // Returns true if pathname describes a root directory. (Windows has one
294 // root directory per disk drive. UNC share roots are also included.)
305 // will be directory/base_name.extension or
306 // directory/base_name_<number>.extension if directory/base_name.extension
312 FilePath FilePath::GenerateUniqueFileName(const FilePath& directory,
318 full_pathname.Set(MakeFileName(directory, base_name, number++, extension));
324 // it is intended to represent a directory. Returns false otherwise.
325 // This does NOT check that a directory (or file) actually exists.
347 // Create the directory so that path exists. Returns true if successful or
348 // if the directory already exists; returns false if unable to create the
349 // directory for any reason, including if the parent directory does not
369 return this->DirectoryExists(); // An error is OK if the directory exists.