flightplan icon indicating copy to clipboard operation
flightplan copied to clipboard

Can't use absolute path in transfer

Open mik01aj opened this issue 10 years ago • 3 comments

When I give an absolute path as the local path to local.transfer, it treats the path as if it was relative (so if I specify /tmp/package.tar.gz, it trats it as ./tmp/package.tar.gz.

mik01aj avatar Jul 22 '15 07:07 mik01aj

This is a limitation of how the transfer function utilizes rsync. The simplest solution I can think of would be to create or move package.tar.gz into the current project root and then call:

local.transfer('package.tar.gz', '/tmp');

This also makes sure that you don't create unwanted sub-directories on the remote hosts.

pstadler avatar Jul 23 '15 10:07 pstadler

Thanks for the reply.

I did it just like this, and it works.

I understand that implementing absolute paths might be hard, but even if you don't, the transfer function should recognize that it got an absolute path and fail with a message like "absolute paths are not supported, sorry". At least, that's what I'd expect.

mik01aj avatar Jul 23 '15 11:07 mik01aj

Have same issue, I think that I should be able to use any path I want.

StyleT avatar Jan 22 '16 14:01 StyleT