Closed juriroemer closed 2 years ago
This is not a bug.
The RO Crate spec says that files are referenced by their path. So if you add a file in the path (relative to the root) a/file.txt
then it has to be written into the crate as a/file.txt
- not just file.txt
.
So folders are created as @type Dataset and files as @type File.
See: https://www.researchobject.org/ro-crate/1.1/data-entities.html#file-data-entity
I see, thanks for the clarification! I initially noticed this when I tested setting the FileBrowser to always be check-strictly
which gave wonky results in openDirectory
mode - where the parent folder got selected instead of the folder I intended to select. So I just assumed this would be correlated. Of course check-strictly
doesn't make any sense in openDirectory
mode and even if the bug I linked is still there, it doesn't impact Describo.
Cool!
I presume this is not intended behavior.
Steps to reproduce:
Manage Collection Data Files
.Expected behavior: Only the selected file will be added to the collection, as it happens with file that are located in the root folder.
This might be related to this Element UI bugreport.