mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 03:26:50 +01:00
Fixes issues with copy2 or copystat and SELinux see #3665
This commit is contained in:
parent
4aa452ce63
commit
9f5d47c320
7 changed files with 68 additions and 17 deletions
|
|
@ -37,6 +37,7 @@ from documents.models import UiSettings
|
|||
from documents.settings import EXPORTER_ARCHIVE_NAME
|
||||
from documents.settings import EXPORTER_FILE_NAME
|
||||
from documents.settings import EXPORTER_THUMBNAIL_NAME
|
||||
from documents.utils import copy_file_with_basic_stats
|
||||
from paperless import version
|
||||
from paperless.db import GnuPG
|
||||
from paperless_mail.models import MailAccount
|
||||
|
|
@ -437,4 +438,4 @@ class Command(BaseCommand):
|
|||
|
||||
if perform_copy:
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(source, target)
|
||||
copy_file_with_basic_stats(source, target)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue