mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-05 02:06:20 +00:00
Chore: switch from os.path to pathlib.Path (#10539)
This commit is contained in:

committed by
GitHub

parent
cc621cf729
commit
d2064a2535
@@ -254,7 +254,7 @@ class TestConsumer(
|
||||
# https://github.com/jonaswinkler/paperless-ng/discussions/1037
|
||||
|
||||
filename = self.get_test_file()
|
||||
shadow_file = Path(self.dirs.scratch_dir / "._sample.pdf")
|
||||
shadow_file = Path(self.dirs.scratch_dir) / "._sample.pdf"
|
||||
|
||||
shutil.copy(filename, shadow_file)
|
||||
|
||||
|
Reference in New Issue
Block a user