MCPcopy
hub / github.com/django/django / path_level

Method path_level

django/contrib/staticfiles/storage.py:382–383  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

380 def _post_process(self, paths, adjustable_paths, hashed_files):
381 # Sort the files by directory level
382 def path_level(name):
383 return len(name.split(os.sep))
384
385 for name in sorted(paths, key=path_level, reverse=True):
386 substitutions = True

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected