@@ -581,29 +581,29 @@ def list_file_names(
581
581
Examples:
582
582
>>> dir_path = audeer.mkdir("path")
583
583
>>> _ = audeer.touch(dir_path, "file.wav")
584
- >>> _ = audeer.touch(dir_path, "File .wav")
584
+ >>> _ = audeer.touch(dir_path, "album .wav")
585
585
>>> _ = audeer.touch(dir_path, ".lock")
586
586
>>> sub_dir_path = audeer.mkdir(dir_path, "sub")
587
587
>>> _ = audeer.touch(sub_dir_path, "file.ogg")
588
588
>>> _ = audeer.touch(sub_dir_path, ".lock")
589
589
>>> audeer.list_file_names(dir_path, basenames=True)
590
- ['File .wav', 'file.wav']
590
+ ['album .wav', 'file.wav']
591
591
>>> audeer.list_file_names(dir_path, basenames=True, hidden=True)
592
- ['.lock', 'File .wav', 'file.wav']
592
+ ['.lock', 'album .wav', 'file.wav']
593
593
>>> audeer.list_file_names(dir_path, basenames=True, recursive=True)
594
- ['File .wav', 'file.wav', 'sub/file.ogg']
594
+ ['album .wav', 'file.wav', 'sub/file.ogg']
595
595
>>> audeer.list_file_names(dir_path, basenames=True, recursive=True, hidden=True)
596
- ['.lock', 'File .wav', 'file.wav', 'sub/.lock', 'sub/file.ogg']
596
+ ['.lock', 'album .wav', 'file.wav', 'sub/.lock', 'sub/file.ogg']
597
597
>>> audeer.list_file_names(os.path.join(dir_path, "f*"), basenames=True, recursive=True)
598
598
['file.wav', 'sub/file.ogg']
599
599
>>> audeer.list_file_names(
600
- ... os.path.join(dir_path, "[fF ]*"), basenames=True, recursive=True
600
+ ... os.path.join(dir_path, "[fa ]*"), basenames=True, recursive=True
601
601
... )
602
- ['File .wav', 'file.wav', 'sub/file.ogg']
602
+ ['album .wav', 'file.wav', 'sub/file.ogg']
603
603
>>> audeer.list_file_names(
604
604
... os.path.join(dir_path, "[!f]*"), basenames=True, recursive=True
605
605
... )
606
- ['File .wav']
606
+ ['album .wav']
607
607
>>> audeer.list_file_names(dir_path, filetype="ogg", basenames=True, recursive=True)
608
608
['sub/file.ogg']
609
609
0 commit comments