Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
0dc44227
Commit
0dc44227
authored
Jun 03, 2013
by
Gero Müller
Browse files
fix createfile/createfolder when using ~
parent
20d95497
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/remote/filesystem.py
View file @
0dc44227
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment