Skip to content

Commit

Permalink
fix: convert str to path first (#388)
Browse files Browse the repository at this point in the history
Co-authored-by: Spoked <Spoked@localhost>
  • Loading branch information
dreulavelle and Spoked authored Jun 12, 2024
1 parent 3e0a575 commit 2944bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/program/libraries/symlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def run(self) -> MediaItem:
def process_items(directory: Path, item_class, item_type: str, is_anime: bool = False):
"""Process items in the given directory and yield MediaItem instances."""
items = [
(root, files[0])
(Path(root), files[0])
for root, _, files
in os.walk(directory)
if files
Expand Down

0 comments on commit 2944bf0

Please sign in to comment.