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

Unified Diff: base/file_util_posix.cc

Issue 9638002: Add symbolic link support to FileSystemFileUtil::AbstractFileEnumerator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « base/file_util.h ('k') | base/file_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 58cd732a7b4f762b8751dc71321682b962bcd0d9..16cf629c0434435e6fa9250115b539e226d2ecc5 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -774,11 +774,17 @@ void FileEnumerator::GetFindInfo(FindInfo* info) {
info->filename.assign(cur_entry->filename.value());
}
+// static
bool FileEnumerator::IsDirectory(const FindInfo& info) {
return S_ISDIR(info.stat.st_mode);
}
// static
+bool FileEnumerator::IsLink(const FindInfo& info) {
+ return S_ISLNK(info.stat.st_mode);
+}
+
+// static
FilePath FileEnumerator::GetFilename(const FindInfo& find_info) {
return FilePath(find_info.filename);
}
« no previous file with comments | « base/file_util.h ('k') | base/file_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698