This commit is contained in:
iperov 2021-11-21 13:33:04 +04:00
parent 4a35635538
commit 2605930dfe
5 changed files with 220 additions and 8 deletions

View file

@ -1,5 +1,6 @@
from os import scandir
from pathlib import Path
from typing import List
# image_extensions = [".jpg", ".jpeg", ".png", ".tif", ".tiff"]
@ -22,7 +23,7 @@ def scantree(path):
yield entry
def get_files_paths(dir_path, extensions=None, subdirs=False):
def get_files_paths(dir_path, extensions=None, subdirs=False) -> List[Path]:
"""
returns array of Path() of files
"""