MCPcopy
hub / github.com/django/django / list

Method list

django/contrib/staticfiles/finders.py:174–181  ·  view source on GitHub ↗

List all files in all app storages.

(self, ignore_patterns)

Source from the content-addressed store, hash-verified

172 super().__init__(*args, **kwargs)
173
174 def list(self, ignore_patterns):
175 """
176 List all files in all app storages.
177 """
178 for storage in self.storages.values():
179 if storage.exists(""): # check if storage location exists
180 for path in utils.get_files(storage, ignore_patterns):
181 yield path, storage
182
183 def find(self, path, find_all=False):
184 """

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected