fsspec / fsspec/filesystem_spec

Copy file to and from local

Open
#1,694 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.4k
Forks
490
Avg merge
2d 3h
Merged PRs (30d)
38

Description

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,

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the demonstrated fsspec.open, fs.put, and fs.get usage to understand how local and remote filesystems are currently selected. Determine the intended single-operation interface for both transfer directions and verify that local-to-remote and remote-to-local copies are covered before adding tests for the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.