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); |
} |