Updates:
Cc: pekka.klarck
Comment #8 on issue 1613 by pekka.klarck: OperatingSystem: New `Move/Copy
Files` keywords for moving/copying multiple files (incl. wildcard support)
http://code.google.com/p/robotframework/issues/detail?id=1613
We discussed this and agreed that the destination needs to be a directory.
Some reasons for this decision:
1) That's what mv/cp commands require also when moving/copying multiple
files.
2) If the destination does not exist, it would be impossible to know does
the user want the destination to be a directory or file. Guessing based on
possible extension is not a solution.
3) If multiple source files are moved/copied so that the destination is a
single file, the effect would be that all but the last of the source files
would be deleted. Possibility for accidental data-loss is a big no-no.
We also discussed about the use case of renaming a file which name is not
fully known. We agreed that the use case is valid, but that doesn't change
the fact that the proposed Move/Copy Files keywords could support it.
Adding this support for the existing Move/Copy File keywords would be
possible, though. It ought to be relatively easy to change them so that the
source can specified as a glob pattern that must match exactly one file.
Please submit a separate issue if you think it is a good idea.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.