summaryrefslogtreecommitdiff
path: root/docs/ref/files
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-07-16 10:41:20 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-07-24 14:58:57 +0200
commite42defb63b765b589fb8ef54e2d6773999d41939 (patch)
tree2c7bf232debff8f4ce74713658738272e3a97b6b /docs/ref/files
parente5d2664908164d51d2daa46e375da8b6a93def03 (diff)
[5.1.x] Fixed #35604, Refs #35326 -- Made FileSystemStorage.exists() behaviour independent from allow_overwrite.
Partially reverts 0b33a3abc2ca7d68a24f6d0772bc2b9fa603744e. Storage.exists(name) was documented to "return False if the name is available for a new file." but return True if the file exists. This is ambiguous in the overwrite file case. It will now always return whether the file exists. Thank you to Natalia Bidart and Josh Schneier for the review. Backport of 8d6a20b656ff3fa18e36954668a44a831c2f6ddd from main.
Diffstat (limited to 'docs/ref/files')
-rw-r--r--docs/ref/files/storage.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt
index e912bcc412..f7c290a150 100644
--- a/docs/ref/files/storage.txt
+++ b/docs/ref/files/storage.txt
@@ -129,8 +129,7 @@ The ``Storage`` class
.. method:: exists(name)
Returns ``True`` if a file referenced by the given name already exists
- in the storage system, or ``False`` if the name is available for a new
- file.
+ in the storage system.
.. method:: get_accessed_time(name)