filesystem_spec icon indicating copy to clipboard operation
filesystem_spec copied to clipboard

Copy file to and from local

Open peterdudfield opened this issue 1 year ago • 3 comments

Ive perhaps missed something, and if so please do tell me, p.s this is a great package, and I really like using it.

Im trying copy a file from

  1. remote to local or
  2. local to remote

It seems like I have to use two different methods 1

fs = fsspec.open(file2).fs
fs.put(file1, file2)

and

fs = fsspec.open(file1).fs
fs.get(file1, file2)

But it would be great just to have one functions that does this. It feels a bit like local is treated slightly different than other file system.

Appolgies if Ive miss understood something,

peterdudfield avatar Sep 27 '24 12:09 peterdudfield