diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-16 10:41:20 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-24 14:55:10 +0200 |
| commit | 8d6a20b656ff3fa18e36954668a44a831c2f6ddd (patch) | |
| tree | 2bf07c00cf3ee131048dd9d414fcc5dac1fd1f03 /docs/ref | |
| parent | 5559011c2bfd44a93b0929802be26bfeffbc4e95 (diff) | |
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.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/files/storage.txt | 3 |
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) |
