Commit 0dc44227 authored by Gero Müller's avatar Gero Müller
Browse files

fix createfile/createfolder when using ~

parent 20d95497
......@@ -164,7 +164,7 @@ class FileSystem(object):
def create_folder(self, path, name):
# folder with the same name existent?
fullpath = os.path.join(path, name)
fullpath = os.path.expanduser(os.path.expandvars(os.path.join(path, name)))
if os.path.isdir(fullpath):
raise Exception("Name already in use!")
try:
......@@ -175,7 +175,7 @@ class FileSystem(object):
def create_file(self, path, name):
# file with the same name existent?
fullpath = os.path.join(path, name)
fullpath = os.path.expanduser(os.path.expandvars(os.path.join(path, name)))
if os.path.exists(fullpath):
raise Exception("Name already in use!")
try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment