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

Unified Diff: base/files/file_enumerator.cc

Issue 2892173003: Add recursive pattern matching for subfolders in file_enumerator. (Closed)
Patch Set: Add recursive pattern matching for subfolders in file_enumerator Created 3 years, 6 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
« no previous file with comments | « base/files/file_enumerator.h ('k') | base/files/file_enumerator_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_enumerator.cc
diff --git a/base/files/file_enumerator.cc b/base/files/file_enumerator.cc
index 974998036d3aeb3c766a16012eff9238001cf644..dfa277a2d1c7efe985fb931d8d5d5248e4822575 100644
--- a/base/files/file_enumerator.cc
+++ b/base/files/file_enumerator.cc
@@ -18,4 +18,9 @@ bool FileEnumerator::ShouldSkip(const FilePath& path) {
!(INCLUDE_DOT_DOT & file_type_));
}
+bool FileEnumerator::IsTypeMatched(bool is_dir) const {
+ return (file_type_ &
+ (is_dir ? FileEnumerator::DIRECTORIES : FileEnumerator::FILES)) != 0;
+}
+
} // namespace base
« no previous file with comments | « base/files/file_enumerator.h ('k') | base/files/file_enumerator_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698