Commits

Florian Hahn  committed 77acfd2

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

  • Participants
  • Parent commits d5bd7f4

Comments (0)

Files changed (1)

File storages/backends/hashpath.py

         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