Index: Source/core/fileapi/FileList.cpp |
diff --git a/Source/core/fileapi/FileList.cpp b/Source/core/fileapi/FileList.cpp |
index 1885374fbcbf2ba1483dbad585ce7704094fbb4b..8de60544b0f317ccb2ebddf8dcf36a28beb78090 100644 |
--- a/Source/core/fileapi/FileList.cpp |
+++ b/Source/core/fileapi/FileList.cpp |
@@ -41,11 +41,13 @@ File* FileList::item(unsigned index) const |
return m_files[index].get(); |
} |
-Vector<String> FileList::paths() const |
+Vector<String> FileList::pathsForUserVisibleFiles() const |
{ |
Vector<String> paths; |
- for (unsigned i = 0; i < m_files.size(); ++i) |
- paths.append(m_files[i]->path()); |
+ for (unsigned i = 0; i < m_files.size(); ++i) { |
+ if (m_files[i]->userVisibility() == File::IsUserVisible) |
+ paths.append(m_files[i]->path()); |
+ } |
return paths; |
} |