diff --git a/src/dir/artist.py b/src/dir/artist.py index 2085769..9e9abda 100644 --- a/src/dir/artist.py +++ b/src/dir/artist.py @@ -13,7 +13,7 @@ class Artist(Directory): contents = list() for e in self.path.iterdir(): if e.is_file(): - self.log.warning('POP', f"File {e} ignored.") + self.log.warning("POP", f"Warning, skipping non-dir '{e}' found in artist '{self.path.parts[-1]}'") elif e.is_dir(): contents.append(Album(e, log)) return contents \ No newline at end of file diff --git a/src/dir/root.py b/src/dir/root.py index 730fe64..99c17eb 100644 --- a/src/dir/root.py +++ b/src/dir/root.py @@ -12,7 +12,7 @@ class Root(Directory): contents = list() for e in self.path.iterdir(): if e.is_file(): - self.log.warning('POP', f"File {e} ignored.") + self.log.warning("POP", f"Warning, skipping non-dir '{e}' found in root") elif e.is_dir(): contents.append(Artist(e, log)) return contents \ No newline at end of file