[#189] blobstor: Implement DumpInfo method

Implement method to get the information about the BLOB storage.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-19 16:52:37 +03:00 committed by Alex Vanin
parent dae8d3de5b
commit eaa7068e3c
4 changed files with 29 additions and 11 deletions

View file

@ -53,9 +53,9 @@ func (b *BlobStor) Put(prm *PutPrm) (*PutRes, error) {
func (t *fsTree) put(addr *objectSDK.Address, data []byte) error {
p := t.treePath(addr)
if err := os.MkdirAll(path.Dir(p), t.perm); err != nil {
if err := os.MkdirAll(path.Dir(p), t.Permissions); err != nil {
return err
}
return ioutil.WriteFile(p, data, t.perm)
return ioutil.WriteFile(p, data, t.Permissions)
}