From 43bec2a8726e60252df7d4733347b55cfce06175 Mon Sep 17 00:00:00 2001 From: Koncopd Date: Mon, 30 Dec 2024 13:10:14 +0100 Subject: [PATCH] :bulb: Edit upload_from comment --- lamindb_setup/core/upath.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lamindb_setup/core/upath.py b/lamindb_setup/core/upath.py index a45efd94..a27e3e00 100644 --- a/lamindb_setup/core/upath.py +++ b/lamindb_setup/core/upath.py @@ -269,7 +269,6 @@ def download_to(self, local_path: UPathStr, print_progress: bool = True, **kwarg cloud_path_str = str(self) local_path_str = str(local_path) - # otherwise fsspec calls fs._ls_real where it reads the body and parses links # so the file is downloaded 2 times # upath doesn't call fs.ls to infer type @@ -325,8 +324,7 @@ def upload_from( destination = self.as_posix() # the below lines are to avoid s3fs triggering create_bucket in upload if - # dirs are present it allows to avoid permission error - # would be easier to just + # dirs are present, it allows to avoid permission error if self.protocol == "s3" and local_path_is_dir and create_folder: bucket = self.drive if bucket not in self.fs.dircache: