if has is not empty, it is a file
@@ -138,7 +138,7 @@ class IpfsStore[F[_]](ipfsUri: Uri)(
)
rawHashes = {
val headObject = rawResponse.Objects.head
- if (headObject.Links.isEmpty) List(headObject.Hash)
+ if (headObject.Hash.nonEmpty || headObject.Links.isEmpty) List(headObject.Hash)
else headObject.Links.map(_.Hash)
}
hashes <- rawHashes.map { h =>
