Skip to content

Commit

Permalink
Overwrote the httpfs _ls_real with ours
Browse files Browse the repository at this point in the history
	-- This is to avoid having to create find and walk which would be simply be duplicates of the httpfs find/walk
  • Loading branch information
turetske committed Dec 12, 2024
1 parent ef596e4 commit c67ae70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pelicanfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ def __init__(
self._mkdir = self.http_file_system._mkdir
self._makedirs = self.http_file_system._makedirs

# Overwrite the httpsfs _ls_real call with ours with ours
self.httpFileSystem._ls_real = self._ls_real

# Note this is a class method because it's overwriting a class method for the AbstractFileSystem
@classmethod
def _strip_protocol(cls, path):
Expand Down

0 comments on commit c67ae70

Please sign in to comment.