mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 19:12:14 +03:00
Checked source and target existence when move #4149
This commit is contained in:
parent
648d9400f3
commit
546a40a653
@ -795,8 +795,10 @@ class InternalCommands:
|
|||||||
os.symlink(source, target)
|
os.symlink(source, target)
|
||||||
|
|
||||||
def move(self, source, target):
|
def move(self, source, target):
|
||||||
print 'move: ', source,'-->', target
|
if os.path.exists(source):
|
||||||
shutil.move(source, target)
|
if not os.path.exists(target):
|
||||||
|
print 'move: ', source,'-->', target
|
||||||
|
shutil.move(source, target)
|
||||||
|
|
||||||
def macPostMake(self, target):
|
def macPostMake(self, target):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user