mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-22 22:46:53 +01:00
Chore: switch from os.path to pathlib.Path (#10397)
This commit is contained in:
parent
54e2b916e6
commit
6dca4daea5
9 changed files with 201 additions and 181 deletions
|
|
@ -63,11 +63,11 @@ class Document:
|
|||
/ "documents"
|
||||
/ "originals"
|
||||
/ f"{self.pk:07}.{self.file_type}.gpg"
|
||||
).as_posix()
|
||||
)
|
||||
|
||||
@property
|
||||
def source_file(self):
|
||||
return Path(self.source_path).open("rb")
|
||||
return self.source_path.open("rb")
|
||||
|
||||
@property
|
||||
def file_name(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue