Fixed uploading to existing directories
This commit is contained in:
parent
fdac22b5d8
commit
edb1582626
|
@ -332,7 +332,7 @@ class ServeFile():
|
||||||
handler = FileHandler
|
handler = FileHandler
|
||||||
elif self.serveMode == self.MODE_UPLOAD:
|
elif self.serveMode == self.MODE_UPLOAD:
|
||||||
if os.path.isdir(self.target):
|
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):
|
elif not os.path.exists(self.target):
|
||||||
self.dirCreated = True
|
self.dirCreated = True
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue