summaryrefslogtreecommitdiff
path: root/django/core/files/move.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/files/move.py')
-rw-r--r--django/core/files/move.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/core/files/move.py b/django/core/files/move.py
index d7a9c7026e..57508fab82 100644
--- a/django/core/files/move.py
+++ b/django/core/files/move.py
@@ -55,6 +55,7 @@ def file_move_safe(
| os.O_CREAT
| getattr(os, "O_BINARY", 0)
| (os.O_EXCL if not allow_overwrite else 0)
+ | os.O_TRUNC
),
)
try: