@@ -134,6 +134,17 @@ def latest_manifest_file(self) -> str:
134134 """
135135 return self ._find_latest_file (self .manifest_file_names )
136136
137+ @property
138+ def cache_dir (self ) -> str :
139+ """Return the cache directory path.
140+
141+ Returns
142+ -------
143+ str
144+ Full cache directory path
145+ """
146+ return self ._cache_dir
147+
137148 # ====================== BasicLocalCache methods ==========================
138149
139150 @abstractmethod
@@ -330,7 +341,7 @@ def data_path(self, file_id) -> dict:
330341 RuntimeError
331342 If the file cannot be downloaded
332343 """
333- file_attributes = self ._manifest . data_file_attributes (file_id )
344+ file_attributes = self .get_file_attributes (file_id )
334345 exists = self ._file_exists (file_attributes )
335346 local_path = file_attributes .local_path
336347 output = {'local_path' : local_path ,
@@ -339,6 +350,21 @@ def data_path(self, file_id) -> dict:
339350
340351 return output
341352
353+ def get_file_attributes (self , file_id ):
354+ """
355+ Retrieve file attributes for a given file_id from the meatadata.
356+
357+ Parameters
358+ ----------
359+ file_id: str or int
360+ The unique identifier of the file to be accessed
361+
362+ Returns
363+ -------
364+ CacheFileAttributes
365+ """
366+ return self ._manifest .data_file_attributes (file_id )
367+
342368
343369class CloudCacheBase (BasicLocalCache ):
344370 """
@@ -1042,6 +1068,10 @@ def __init__(self, cache_dir, bucket_name, project_name,
10421068
10431069 _s3_client = None
10441070
1071+ @property
1072+ def bucket_name (self ) -> str :
1073+ return self ._bucket_name
1074+
10451075 @property
10461076 def s3_client (self ):
10471077 if self ._s3_client is None :
0 commit comments