From ce85cab7ab63ed5ce98cb9e5c70e825c5ceb286a Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Sat, 2 Nov 2024 11:54:31 -0700 Subject: [PATCH] fix(fs): rename get file args to fsspec spec (#360) --- pydrive2/fs/spec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pydrive2/fs/spec.py b/pydrive2/fs/spec.py index 60b5197..b39306e 100644 --- a/pydrive2/fs/spec.py +++ b/pydrive2/fs/spec.py @@ -573,10 +573,10 @@ def mv(self, path1, path2, maxdepth=None, **kwargs): # TODO need to invalidate the cache for the old path, see #232 file1.Upload() - def get_file(self, lpath, rpath, callback=None, block_size=None, **kwargs): - item_id = self._get_item_id(lpath) + def get_file(self, rpath, lpath, callback=None, block_size=None, **kwargs): + item_id = self._get_item_id(rpath) return self._gdrive_get_file( - item_id, rpath, callback=callback, block_size=block_size + item_id, lpath, callback=callback, block_size=block_size ) @_gdrive_retry