Index: base/files/file_path.h |
diff --git a/base/files/file_path.h b/base/files/file_path.h |
index 2e0009d94dc94f1ab22e235dc72b345ba717684b..f3531f513f9ea3603b88542e9061392885a672ee 100644 |
--- a/base/files/file_path.h |
+++ b/base/files/file_path.h |
@@ -285,6 +285,16 @@ class BASE_EXPORT FilePath { |
// platforms, an absolute path begins with a separator character. |
bool IsAbsolute() const; |
+ // Returns an absolute version of a relative path. Returns an empty path on |
+ // error. On POSIX, this function fails if the path does not exist. |
+ FilePath AsAbsolute() const WARN_UNUSED_RESULT; |
+ |
+ // Returns true if the patch ends with a path separator character. |
+ bool EndsWithSeparator() const WARN_UNUSED_RESULT; |
+ |
+ // Returns a copy of this FilePath that ends with a trailing separator. |
+ FilePath AsEndingWithSeparator() const WARN_UNUSED_RESULT; |
+ |
// Returns a copy of this FilePath that does not end with a trailing |
// separator. |
FilePath StripTrailingSeparators() const WARN_UNUSED_RESULT; |