Changes between Initial Version and Version 1 of Ticket #35604


Ignore:
Timestamp:
Jul 16, 2024, 1:18:10 AM (4 months ago)
Author:
Stefan Hammer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35604 – Description

    initial v1  
    11With this ticket I would like to vote against the latest changes to `FileSystemStorage.exists()` with #35326.
    2 The very basic file storage operation "exists" now returns `False`, if the option `allow_overwrite` is set to `True` (see [https://github.com/django/django/pull/18020/files#diff-63fca472a0ca8c04505cb4ec9c132663ac71fc964110afc8ae9218416f37821cR196-R202 Github]).
     2The very basic file storage operation "exists" now returns `False`, if the option `allow_overwrite` is set to `True`, no matter if the file actually exists or not (see [https://github.com/django/django/pull/18020/files#diff-63fca472a0ca8c04505cb4ec9c132663ac71fc964110afc8ae9218416f37821cR196-R202 Github]).
    33I know, the default behavior is unchanged (`allow_overwrite` is False by default), but nevertheless the change seems to me more like the easiest option, but not the cleanest for the API. Until now, the API was very self-explanatory.
    44
Back to Top