diff --git a/ordigi/collection.py b/ordigi/collection.py index 99b89c2..054e731 100644 --- a/ordigi/collection.py +++ b/ordigi/collection.py @@ -361,7 +361,7 @@ class Paths: :return: Path path """ if not path.exists(): - self.log.error(f'Directory {path} does not exist') + self.log.error(f'Path {path} does not exist') sys.exit(1) return path diff --git a/ordigi/media.py b/ordigi/media.py index 14616f7..c4f1ad0 100644 --- a/ordigi/media.py +++ b/ordigi/media.py @@ -718,6 +718,11 @@ class Medias: """Get paths""" for src_dir in src_dirs: src_dir = self.paths.check(src_dir) + + if src_dir.is_file(): + yield src_dir.parent, src_dir + continue + paths = self.paths.get_paths_list(src_dir) # Get medias and src_dirs