def _filtered_results(self, entries, fetch_parent_uid=True, parent_uid=None):
     infos = [self._doc_to_info(d, fetch_parent_uid=fetch_parent_uid, parent_uid=parent_uid) for d in entries]
     # Filter out filenames that would be ignored by the file system client
     # so as to be consistent
     # TODO use the parent path (instead of None) to also filter by the parent directory name, e.g.
     # ignore files in a hidden folder
     return [info for info in infos if not base_is_ignored(None, None, info.name)]
예제 #2
0
 def is_ignored(self, parent_ref, file_name, ignore_guest=False):
     self.manipulate_guest_filter(ignore_guest)
     return base_is_ignored(self, parent_ref, file_name)