diff --git a/my_script.py b/my_script.py index d45775fa92e005..f63cb9690aa364 100644 --- a/my_script.py +++ b/my_script.py @@ -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 @@ -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") \ No newline at end of file