Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml". On Windows, uses \ as the separator rather than /.
| 9430 | // Given directory = "dir", relative_path = "test.xml", returns "dir/test.xml". |
| 9431 | // On Windows, uses \ as the separator rather than /. |
| 9432 | FilePath FilePath::ConcatPaths(const FilePath& directory, |
| 9433 | const FilePath& relative_path) { |
| 9434 | if (directory.IsEmpty()) |
| 9435 | return relative_path; |
| 9436 | const FilePath dir(directory.RemoveTrailingPathSeparator()); |
| 9437 | return FilePath(dir.string() + kPathSeparator + relative_path.string()); |
| 9438 | } |
| 9439 | |
| 9440 | // Returns true if pathname describes something findable in the file-system, |
| 9441 | // either a file, directory, or whatever. |
nothing calls this directly
no test coverage detected