From 8d6a20b656ff3fa18e36954668a44a831c2f6ddd Mon Sep 17 00:00:00 2001 From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Date: Tue, 16 Jul 2024 10:41:20 +0200 Subject: 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. --- docs/ref/files/storage.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/ref/files') 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) -- cgit v1.3