Closed Bravo555 closed 8 months ago
@Bravo555 yes the goal would be able to support that. I’ll add it to the requirements for the underlying robotframework-devicelibrary library. Copying file/s folders is deceptively more challenging that I first thought.
Renaming files is now possible using Transfer To Device
, though I'm not 100% sure when it was added, so to be sure use version >= 1.13.0.
With commands like
cp
ormv
being able to rename files by providing a target filename, one would expectTransfer To Device
to work in a similar manner. Instead, the command appears to ignore the target filename, only extract the directory, and use the source filename, resulting in the file not being renamed.Example:
I have two keywords that attempt to transfer different files, but rename it to
tedge-mosquitto.conf
in the same directory:Instead the file maintains its original filename:
The workaround is trivial (just rename the file using
Execute Command
after transferring), but it was a bit surprising, as there was no warning that the target filename was not expected.