Auto-import folder
It would be nice to be able to define a consume folder or consume library that the app looks to and can consume/import files and zips that are placed there. Instead of uploading via the gui.
This is a good idea, it's something I've done manually for ages, but automatic monitoring and import from a drop box area would be great.
Import folder would be good, but I think it needs work on the definition of what you are importing. How should you structure the files in the import folder?
One suggestion that comes to mind, would be adding a file to tell Manyfold what is the folder he's looking at:
An example: /import/OnePageRules/Ratmen/soldiers contains a couple of images, 3 folders (supported, lys, unsupported), 1 stl. How do we tell Manyfold that it should create a creatore "OnePageRules", assign a "Ratmen" collection to it, create a model "soldiers" with said file? We had the following files to:
- creator.json in /import/OnePageRules
- collection.json in /import/OnePageRules/Ratmen
- model.json in /import/OnePageRules/Ratmen/soldiers
This file tells Manyfold what he's looking at and it could contain additional info, like the description, a url, an icon url, tags, etc. These files could also be created by Manyfold for the existing files, so that we'd have a backup in case the db is lost, just reimport the whole library folder and you'll have everything back up in no time.
This would work for any kind of structure people might have, they'd just need to create a bunch of empty file named creator/collection/tag/model.json and copy paste them in their folders.
Zips would be more difficult, but it could be done by appending the name of the zip to the filename, in the same folder as the zip, so ratmen_soldiers_v1_final.zip would have a sidecar file named ratmen_soldiers_v1_final.zip.model.json, which could contain the infos on the author and collection to put it in. A collection zip file could be more opinionated, meaning a ratmen.zip with a ratmen.zip.collection.json would create the ratmen collection in Manyfold and threat any folder in the zip as a model.
Metadata file discussed here #2452