1. Albert O'Connor
  2. django-storages


Florian Hahn  committed 77acfd2

use exists method to check if file is already there, fixes #83

  • Participants
  • Parent commits d5bd7f4
  • Branches default

Comments (0)

Files changed (1)

File storages/backends/hashpath.py

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