xenon-middleware / xenon-cli

Perform files and jobs operations with Xenon library from command line
http://nlesc.github.io/Xenon/
Apache License 2.0
2 stars 3 forks source link

xenon file copy --overwrite doesn't work in combination with --recursive #20

Closed jspaaks closed 7 years ago

jspaaks commented 7 years ago
~/tmp$ tree thedir
thedir
├── thefile.txt
└── thesubdir

1 directory, 1 file
~/tmp$ xenon file copy --recursive thedir thecopieddir
Copied '/home/daisycutter/tmp/thedir' from location 'local' to '/home/daisycutter/tmp/thecopieddir' to location 'local', 0 bytes copied
~/tmp$ tree thecopieddir/
thecopieddir/
├── thefile.txt
└── thesubdir

1 directory, 1 file
~/tmp$ xenon file copy --recursive thedir thecopieddir
file adaptor: Path already exists: /home/daisycutter/tmp/thecopieddir/thesubdir
~/tmp$ xenon file copy --recursive --overwrite thedir thecopieddir
file adaptor: Path already exists: /home/daisycutter/tmp/thecopieddir/thesubdir

doesn't look like the --overwrite works in combination with --recursive

sverhoeven commented 7 years ago

This is a problem in Xenon, created https://github.com/NLeSC/Xenon/issues/506