Skip to content
Snippets Groups Projects
Commit 93469f9d authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'Sprint/2021-16' into 'master'

Sprint/2021 16

See merge request !47
parents 411fa7f1 cd655d17
No related branches found
No related tags found
1 merge request!47Sprint/2021 16
## Tree
The TreeApi handles the retrieving or storing metadata to a certain path.
......@@ -149,8 +149,8 @@ namespace Coscine.Api.Tree.Controllers
{
Name = GetFolderOrFileName(x),
Path = x.Key,
Size = (int)x.BodyBytes,
Kind = x.Key[(x.Key.LastIndexOf(".") + 1)..],
Size = x.BodyBytes,
Kind = x.HasBody ? "file" : "folder",
Provider = resource.Type.DisplayName
};
var objectMetaInfoReturnObject = new ObjectMetaInfoReturnObject(objectMetaInfo, _blobApiLink, resource.Id.ToString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment