diff --git a/src/CoreApi/BlockApi.cs b/src/CoreApi/BlockApi.cs index b2150703..37b8a9e9 100644 --- a/src/CoreApi/BlockApi.cs +++ b/src/CoreApi/BlockApi.cs @@ -50,7 +50,7 @@ public BlockApi(IpfsEngine ipfs) this.ipfs = ipfs; } - FileStore Store + public FileStore Store { get { diff --git a/src/CoreApi/BlockRepositoryApi.cs b/src/CoreApi/BlockRepositoryApi.cs index 0a4188af..521d572b 100644 --- a/src/CoreApi/BlockRepositoryApi.cs +++ b/src/CoreApi/BlockRepositoryApi.cs @@ -34,7 +34,8 @@ public BlockRepositoryApi(IpfsEngine ipfs) StorageMax = 10000000000 // TODO: there is no storage max }; - GetDirStats(data.RepoPath, data, cancel); + var blockApi = (BlockApi)ipfs.Block; + GetDirStats(blockApi.Store.Folder, data, cancel); return Task.FromResult(data); }