Ticket #17812: 17812.diff
File 17812.diff, 703 bytes (added by , 13 years ago) |
---|
-
django/core/files/storage.py
209 209 return name 210 210 211 211 def delete(self, name): 212 name = self.path(name) 213 # If the file exists, delete it from the filesystem. 214 if os.path.exists(name): 215 os.remove(name) 212 if name: 213 name = self.path(name) 214 # If the file exists, delete it from the filesystem. 215 if os.path.exists(name): 216 os.remove(name) 216 217 217 218 def exists(self, name): 218 219 return os.path.exists(self.path(name))