01 Things to know

- /move and /rename only work on files, and the target folder must exist. /delete refuses non-empty folders.
- Moving an EPUB clears its layout cache, so the book re-paginates the next time it is opened. Test what happens to reading progress on your device before you move books people are reading.
- Skip plugin folders. Every plugin has a README.md, and .md is a book format for the reader. A naive scan treats those READMEs as duplicate "books" and moves them out of the plugins. The code above skips /plugins, and dot-folders (/.crosspoint/plugins, /.plugins) are skipped as hidden.
- Dot-folders are hidden from /api/files unless "show hidden files" is on. Skip them anyway.
- Don't parallelise requests with Promise.all. The reader serves one request at a time.
- Always confirm before destructive actions. Your plugin runs with full access.

Next: Tutorial 6: Remote control with the job queue.
Reader file (.txt)