mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Use fixed windows path for video cache
This commit is contained in:
parent
57ec51e95a
commit
f47e7374d2
3 changed files with 16 additions and 3 deletions
|
|
@ -56,6 +56,12 @@ class Deduplicator:
|
|||
log.explain(f"Changed path to {fmt_path(new_path)} for windows compatibility")
|
||||
return new_path
|
||||
|
||||
def fixup_path(self, path: PurePath) -> PurePath:
|
||||
"""Fixes up the path for windows, if enabled. Returns the path unchanged otherwise."""
|
||||
if self._windows_paths:
|
||||
return self._fixup_for_windows(path)
|
||||
return path
|
||||
|
||||
def mark(self, path: PurePath) -> PurePath:
|
||||
if self._windows_paths:
|
||||
path = self._fixup_for_windows(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue