Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3884)

Unified Diff: base/files/file_path.h

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move AsAbsolute back out of FilePath Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/files/file_path.h
diff --git a/base/files/file_path.h b/base/files/file_path.h
index 2e0009d94dc94f1ab22e235dc72b345ba717684b..9b29b55f59545417260e8714fd72f9363fe4630e 100644
--- a/base/files/file_path.h
+++ b/base/files/file_path.h
@@ -285,6 +285,12 @@ class BASE_EXPORT FilePath {
// platforms, an absolute path begins with a separator character.
bool IsAbsolute() const;
+ // 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;
« no previous file with comments | « base/file_util_win.cc ('k') | base/files/file_path.cc » ('j') | base/files/file_path.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698