예제 #1
0
 def list(self, ignore_patterns):
     """
     List all files in all locations.
     """
     for prefix, root in self.locations:
         storage = self.storages[root]
         for path in utils.get_files(storage, ignore_patterns):
             yield path, storage
예제 #2
0
 def list(self, ignore_patterns):
     """
     List all files in all app storages.
     """
     for storage in six.itervalues(self.storages):
         if storage.exists(''):  # check if storage location exists
             for path in utils.get_files(storage, ignore_patterns):
                 yield path, storage
예제 #3
0
 def list(self, ignore_patterns):
     """
     List all files of the storage.
     """
     for path in utils.get_files(self.storage, ignore_patterns):
         yield path, self.storage