Skip to content

Commit

Permalink
Honor cache storage when file get pulled into cache (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVCaron committed Mar 7, 2024
1 parent b156af0 commit 7485f9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dvc_data/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def get_file(
cache = kwargs.pop("cache", False)
if cache and typ == "remote" and cache_storage:
fs, path = self._cache_remote_file(cache_storage, fs, path, hi)
storage = cache_storage

if (
isinstance(storage, ObjectStorage)
Expand Down

0 comments on commit 7485f9a

Please sign in to comment.