mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-26 22:49:01 -06:00
use path directly
This commit is contained in:
@@ -686,7 +686,7 @@ def build_share_link_bundle(bundle_id: int):
|
|||||||
final_path = (output_dir / f"{bundle.slug}.zip").resolve()
|
final_path = (output_dir / f"{bundle.slug}.zip").resolve()
|
||||||
if final_path.exists():
|
if final_path.exists():
|
||||||
final_path.unlink()
|
final_path.unlink()
|
||||||
shutil.move(str(temp_zip_path), final_path)
|
shutil.move(temp_zip_path, final_path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
bundle.file_path = str(final_path.relative_to(settings.MEDIA_ROOT))
|
bundle.file_path = str(final_path.relative_to(settings.MEDIA_ROOT))
|
||||||
|
|||||||
Reference in New Issue
Block a user