Skip to content

Commit

Permalink
Gave _get() the correct decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
turetske committed Aug 18, 2024
1 parent 95a97e0 commit aee2e1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pelicanfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,6 @@ async def _info(self, path, **kwargs):
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 Expand Up @@ -628,6 +623,11 @@ async def _exists(self, path, **kwargs):
async def _get_file(self, rpath, lpath, **kwargs):
return await self.httpFileSystem._get_file(rpath, lpath, **kwargs)

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


@_cache_multi_dec
async def _cat(self, path, recursive=False, on_error="raise", batch_size=None, **kwargs):
Expand Down

0 comments on commit aee2e1e

Please sign in to comment.