Lines Matching refs:directory
48 // FilePath - a class for file and directory pathname manipulation which
50 // Used for helper functions for naming files in a directory for xml output.
54 // a directory, otherwise it is assumed to represent a file. In either case,
55 // it may or may not represent an actual file or directory in the file system.
84 // Returns the current working directory, or "" if unsuccessful.
87 // Given directory = "dir", base_name = "test", number = 0,
91 static FilePath MakeFileName(const FilePath& directory,
96 // Given directory = "dir", relative_path = "test.xml",
99 static FilePath ConcatPaths(const FilePath& directory,
103 // will be directory/base_name.extension or
104 // directory/base_name_<number>.extension if directory/base_name.extension
110 static FilePath GenerateUniqueFileName(const FilePath& directory,
122 // Returns a copy of the FilePath with the directory part removed.
124 // FilePath("file"). If there is no directory part ("just_a_file"), it returns
130 // RemoveFileName returns the directory path with the filename removed.
147 // not represent a directory (that is, it doesn't end with a path separator).
150 // Create the directory so that path exists. Returns true if successful or
151 // if the directory already exists; returns false if unable to create the
152 // directory for any reason, including if the parent directory does not
157 // either a file, directory, or whatever, and that something exists.
160 // Returns true if pathname describes a directory in the file-system
165 // it is intended to represent a directory. Returns false otherwise.
166 // This does NOT check that a directory (or file) actually exists.
169 // Returns true if pathname describes a root directory. (Windows has one
170 // root directory per disk drive.)
191 // a pathname from directory syntax (trailing separator) to filename syntax.