mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Debugging Collection folder pathing again
This commit is contained in:
2
src/backend/lib/storage.py
vendored
2
src/backend/lib/storage.py
vendored
@@ -171,8 +171,8 @@ class Storage:
|
|||||||
relative_parts = Path(file_name).relative_to(self.config.book_path).parts
|
relative_parts = Path(file_name).relative_to(self.config.book_path).parts
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue # skip books outside the configured path
|
continue # skip books outside the configured path
|
||||||
# breakpoint()
|
|
||||||
if len(relative_parts) < 2:
|
if len(relative_parts) < 2:
|
||||||
|
breakpoint()
|
||||||
folder = relative_parts[1]
|
folder = relative_parts[1]
|
||||||
else:
|
else:
|
||||||
folder = relative_parts[0]
|
folder = relative_parts[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user