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
b3086e8e
Commit
b3086e8e
authored
Apr 24, 2015
by
Marcel Rieger
Browse files
Backport from changeset 75ef01e236e5.
parent
401e8458
Changes
1
Show whitespace changes
Inline
Side-by-side
vispa/remote/filesystem.py
View file @
b3086e8e
...
...
@@ -310,7 +310,7 @@ class FileSystem(object):
newname
=
self
.
handle_file_name_collision
(
name
,
destination
)
destination
=
os
.
path
.
join
(
destination
,
newname
)
if
os
.
path
.
isdir
(
source
):
shutil
.
copytree
(
source
,
destination
)
shutil
.
copytree
(
source
,
destination
,
symlinks
=
True
)
shutil
.
rmtree
(
source
)
else
:
shutil
.
copy2
(
source
,
destination
)
...
...
@@ -369,7 +369,7 @@ class FileSystem(object):
fulltarget
=
os
.
path
.
join
(
path
,
target
)
if
os
.
path
.
isdir
(
fullsrc
):
shutil
.
copytree
(
fullsrc
,
fulltarget
)
shutil
.
copytree
(
fullsrc
,
fulltarget
,
symlinks
=
True
)
if
cut
:
shutil
.
rmtree
(
fullsrc
)
else
:
...
...
Write
Preview
Markdown
is supported
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