Fixed uploading to existing directories

This commit is contained in:
Sebastian Lohff 2012-04-13 20:19:23 +02:00
parent fdac22b5d8
commit edb1582626
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ class ServeFile():
handler = FileHandler
elif self.serveMode == self.MODE_UPLOAD:
if os.path.isdir(self.target):
raise ServeFileException("Warning: Uploading to an already existing directory")
print "Warning: Uploading to an already existing directory"
elif not os.path.exists(self.target):
self.dirCreated = True
try: