forked from seba/servefile
Fixed uploading to existing directories
This commit is contained in:
parent
fdac22b5d8
commit
edb1582626
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue