Skip to content

Commit

Permalink
Merge pull request #6722 from adswa/mnt-6432
Browse files Browse the repository at this point in the history
MNT: Remove unused helper for listing sorted files
  • Loading branch information
yarikoptic committed May 31, 2022
2 parents aa34666 + 7261a61 commit d657c17
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions datalad/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,6 @@ def md5sum(filename):
return Digester(digests=['md5'])(filename)['md5']


# unused in -core
def sorted_files(path):
"""Return a (sorted) list of files under path
"""
return sorted(sum([[op.join(r, f)[len(path) + 1:] for f in files]
for r, d, files in os.walk(path)
if not '.git' in r], []))

_encoded_dirsep = r'\\' if on_windows else r'/'
_VCS_REGEX = r'%s\.(?:git|gitattributes|svn|bzr|hg)(?:%s|$)' % (
_encoded_dirsep, _encoded_dirsep)
Expand Down

0 comments on commit d657c17

Please sign in to comment.