Skip to content

Commit

Permalink
run with py
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Sep 5, 2024
1 parent 4eb0901 commit a78e4e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion my_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path


def get_file(self, rpath, lpath, outfile=None, **kwargs) -> None:
def get_file(lpath, outfile=None, **kwargs) -> None:
# # Taken from https://github.com/fsspec/filesystem_spec/blob/47b445ae4c284a82dd15e0287b1ffc410e8fc470/fsspec/spec.py#L883
# if isfilelike(lpath):
# outfile = lpath
Expand All @@ -20,3 +20,6 @@ def get_file(self, rpath, lpath, outfile=None, **kwargs) -> None:
if outfile is None:
outfile = open(lpath, "wb")
print(outfile)


get_file(lpath="/mnt/cache/datasets/downloads/0f3877f8b8ff8f882b5032f93535a4d21bd7475946970fbf306f79c2769f3d0d.incomplete")

0 comments on commit a78e4e2

Please sign in to comment.