mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-14 17:13:42 -07:00
fixed model renaming/deleting
This commit is contained in:
parent
c485e1718a
commit
17337ea8f8
2 changed files with 9 additions and 1 deletions
|
@ -52,6 +52,14 @@ def get_image_unique_filestem_paths(dir_path, verbose_print_func=None):
|
|||
|
||||
return sorted(result)
|
||||
|
||||
def get_paths(dir_path):
|
||||
dir_path = Path (dir_path)
|
||||
|
||||
if dir_path.exists():
|
||||
return [ Path(x) for x in sorted([ x.path for x in list(scandir(str(dir_path))) ]) ]
|
||||
else:
|
||||
return []
|
||||
|
||||
def get_file_paths(dir_path):
|
||||
dir_path = Path (dir_path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue