Lines Matching defs:path
69 // On Windows, '\\' is the standard path separator, but many tools and the
70 // Windows API also accept '/' as an alternate path separator. Unless otherwise
71 // noted, a file path can contain either kind of path separators, or a mixture
91 // Returns whether the given character is a valid path separator.
139 // Returns a pointer to the last occurrence of a valid path separator in
140 // the FilePath. On Windows, for example, both '/' and '\' are valid path
141 // separators. Returns NULL if no path separator was found.
156 const auto& path = pathname_;
157 auto s = path.begin();
158 auto end = path.end();
162 // A typical absolute path like "C:\Windows" or "D:"
169 // Move past the "\\" prefix in a UNC path like "\\Server\Share\Folder"
182 // A drive-rooted path like "\Windows"
190 return static_cast<size_t>(s - path.begin());
194 // Example: FilePath("path/to/file").RemoveDirectoryName() returns
198 // On Windows platform, '\' is the path separator, otherwise it is '/'.
204 // RemoveFileName returns the directory path with the filename removed.
205 // Example: FilePath("path/to/file").RemoveFileName() returns "path/to/".
209 // On Windows platform, '\' is the path separator, otherwise it is '/'.
268 // Don't strip off trailing separator if path is a root directory on
270 const FilePath& path(IsRootDirectory() ? *this
273 const FilePath& path(*this);
277 LPCWSTR unicode = String::AnsiToUtf16(path.c_str());
287 posix::Stat(path.c_str(), &file_stat) == 0 && posix::IsDir(file_stat);
301 // Returns true if pathname describes an absolute path.
323 // Returns true if FilePath ends with a path separator, which indicates that
331 // Create directories so that path exists. Returns true if successful or if
347 // Create the directory so that path exists. Returns true if successful or