MCPcopy
hub / github.com/django/django / exists

Method exists

django/core/files/storage/base.py:150–157  ·  view source on GitHub ↗

Return 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.

(self, name)

Source from the content-addressed store, hash-verified

148 )
149
150 def exists(self, name):
151 """
152 Return True if a file referenced by the given name already exists in
153 the storage system, or False if the name is available for a new file.
154 """
155 raise NotImplementedError(
156 "subclasses of Storage must provide an exists() method"
157 )
158
159 def listdir(self, path):
160 """

Callers 14

is_name_availableMethod · 0.95
_deleteMethod · 0.45
has_keyMethod · 0.45
incrMethod · 0.45
openMethod · 0.45
handleMethod · 0.45
handle_templateMethod · 0.45
handleMethod · 0.45
cleanupMethod · 0.45
write_pot_fileFunction · 0.45
build_potfilesMethod · 0.45
remove_potfilesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected