Florian Hahn  committed b183233

use absolute path to check if file already exists

  • Participants
  • Parent commits a7e3c80
  • Branches default

Comments (0)

Files changed (1)

File storages/backends/

         dir_name, file_name = os.path.split(name)
         # Return the name if the file is already there
-        if os.path.exists(name):
+        if os.path.exists(self.path(name)):
             return name
         # Try to create the directory relative to the media root