Commits (4)
## 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());
......
......@@ -5,7 +5,7 @@
<AssemblyName>Coscine.Api.Tree</AssemblyName>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFramework>net5.0</TargetFramework>
<Version>2.4.0</Version>
<Version>2.4.1</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>RWTH Aachen University</Authors>
......