Skip to content

Commit

Permalink
Add get() Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristy-an authored and turetske committed Jul 30, 2024
1 parent ab75444 commit 95a97e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pelicanfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,12 @@ async def _info(self, path, **kwargs):
@_dirlist_dec
async def _du(self, path, total=True, maxdepth=None, **kwargs):
return await self.httpFileSystem._du(path, total, maxdepth, **kwargs)


@_dirlist_dec
async def _get(self, rpath, lpath, **kwargs):
results = await self.httpFileSystem._get(rpath, lpath, **kwargs)
return self._remove_host_from_paths(results)

# Not using a decorator because it requires a yield
async def _walk(self, path, maxdepth=None, on_error="omit", **kwargs):
path = self._check_fspath(path)
Expand Down

0 comments on commit 95a97e0

Please sign in to comment.