File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -312,15 +312,16 @@ def _relocate(src, dst):
312
312
shutil .move (src , dst )
313
313
return
314
314
315
- _logger .debug ("Copying %s to %s" , src , dst )
316
- if fs_access .isdir (src ):
317
- if os .path .isdir (dst ):
318
- shutil .rmtree (dst )
319
- elif os .path .isfile (dst ):
320
- os .unlink (dst )
321
- shutil .copytree (src , dst )
322
- else :
323
- shutil .copy2 (src , dst )
315
+ elif action == "copy" :
316
+ _logger .debug ("Copying %s to %s" , src , dst )
317
+ if fs_access .isdir (src ):
318
+ if os .path .isdir (dst ):
319
+ shutil .rmtree (dst )
320
+ elif os .path .isfile (dst ):
321
+ os .unlink (dst )
322
+ shutil .copytree (src , dst )
323
+ else :
324
+ shutil .copy2 (src , dst )
324
325
325
326
outfiles = list (_collectDirEntries (outputObj ))
326
327
pm = path_mapper (outfiles , "" , destination_path , separateDirs = False )
You can’t perform that action at this time.
0 commit comments