From a78e4e2b95e770248ee1a276c67dcb773bd83d04 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Thu, 5 Sep 2024 15:08:45 +0200 Subject: [PATCH] run with py --- my_script.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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