Returns true if FilePath ends with a path separator, which indicates that it is intended to represent a directory. Returns false otherwise. This does NOT check that a directory (or file) actually exists.
| 9528 | // it is intended to represent a directory. Returns false otherwise. |
| 9529 | // This does NOT check that a directory (or file) actually exists. |
| 9530 | bool FilePath::IsDirectory() const { |
| 9531 | return !pathname_.empty() && |
| 9532 | IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); |
| 9533 | } |
| 9534 | |
| 9535 | // Create directories so that path exists. Returns true if successful or if |
| 9536 | // the directories already exist; returns false if unable to create directories |
no test coverage detected