#3783 - Import from filesystem
| Identifier | #3783 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Import from filesystem |
| Status | Open |
| Handling member | Deleted |
| Addon | galleries |
| Description | Allow importing galleries from an on-disk directory structure, just like we currently support for the downloads system. |
| Steps to reproduce | |
| Related to | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
A better way to do it would be to implement some kind of scanner hook system. When you go to a gallery, it may be bound to a directory path based on a hook's determination. That would then rebuild that gallery based on disk contents. Any images/videos that no longer existed would be unvalidated. Any images/videos that previously existed would be re-validated. This way comments would persist. Depending on exactly how the hook was written, we might migrate old image/video entries to a new gallery, if we detect a file has moved.
We could ship a default hook with some inbuilt assumptions.
Some kind of proxying script may also be needed, if the bound directory is not web accessible.
Possibly we'd do this for galleries too, in addition, or instead of, the import process.