Skip to content

Commit d50b1fc

Browse files
committed
datcore?
1 parent 89218ae commit d50b1fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

services/storage/src/simcore_service_storage/datcore_dsm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ async def list_paths(
188188
)
189189

190190
async def compute_path_total_size(self, user_id: UserID, *, path: Path) -> ByteSize:
191-
"""returns the total size of the path"""
191+
"""returns the total size of an arbitrary path"""
192+
api_token, api_secret = await self._get_datcore_tokens(user_id)
193+
api_token, api_secret = _check_api_credentials(api_token, api_secret)
192194
raise NotImplementedError
193195

194196
async def list_files(

services/storage/src/simcore_service_storage/dsm_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def list_paths(
8282

8383
@abstractmethod
8484
async def compute_path_total_size(self, user_id: UserID, *, path: Path) -> ByteSize:
85-
"""returns the total size of the path"""
85+
"""returns the total size of an arbitrary path"""
8686

8787
@abstractmethod
8888
async def get_file(self, user_id: UserID, file_id: StorageFileID) -> FileMetaData:

0 commit comments

Comments
 (0)