File tree 1 file changed +0
-11
lines changed 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 8
8
)
9
9
from django .core .exceptions import SuspiciousFileOperation
10
10
from django .core .files .storage import FileSystemStorage
11
- from storages .utils import get_available_overwrite_name
12
11
13
12
from readthedocs .core .utils .filesystem import safe_open
14
13
from readthedocs .storage .rclone import RCloneLocal
@@ -47,16 +46,6 @@ def _dirpath(path):
47
46
48
47
return path
49
48
50
- def get_available_name (self , name , max_length = None ):
51
- """
52
- Overrides Django's storage to always return the passed name (overwrite).
53
-
54
- By default, Django will not overwrite files even if the same name is specified.
55
- This changes that functionality so that the default is to use the same name and overwrite
56
- rather than modify the path to not clobber files.
57
- """
58
- return get_available_overwrite_name (name , max_length = max_length )
59
-
60
49
def delete_directory (self , path ):
61
50
"""
62
51
Delete all files under a certain path from storage.
You can’t perform that action at this time.
0 commit comments