Skip to content

Commit b854609

Browse files
committed
Remove functional duplicate of listdir_matching()
1 parent 0800402 commit b854609

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/imcflibs/pathtools.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -300,27 +300,6 @@ def find_dirs_containing_filetype(source, filetype):
300300
return dirs_containing_filetype
301301

302302

303-
def list_all_filenames(source, filetype):
304-
"""Get a sorted list of all files of specified filetype in a given directory.
305-
306-
Parameters
307-
----------
308-
source : str
309-
Path to the directory to scan for desired files.
310-
filetype : str
311-
The file extension to look for.
312-
313-
Returns
314-
-------
315-
list(str)
316-
List of all files with the given suffix in the source directory.
317-
"""
318-
os.chdir(str(source))
319-
allimages = sorted(glob.glob("*" + filetype)) # sorted by name
320-
321-
return allimages
322-
323-
324303
def get_folder_size(source):
325304
"""Get the total size of a given directory and its subdirectories.
326305

0 commit comments

Comments
 (0)