don't allow files named . or ..

This commit is contained in:
Damien Elmes 2014-02-10 20:47:49 +09:00
parent 2ec399a009
commit 3c36ddfb82

View file

@ -360,6 +360,8 @@ def invalidFilename(str, dirsep=True):
return "/"
elif (dirsep or not isWin) and "\\" in str:
return "\\"
elif str.strip().startswith("."):
return "."
def platDesc():
# we may get an interrupted system call, so try this in a loop