View Single Post
Old 05-10-2018, 11:22 AM   #4
seru1us
Member
seru1us began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2018
Device: Web Browser
For anyone wondering, this is how I ended up adding an enormous directory using calibredb, so far its running well without filling up the disk.


Code:
find YOUR_HUGE_FOLDER -maxdepth 1 -mindepth 1 -type d -exec bash -c 'echo "$0" && xvfb-run calibredb add -r "$0"/* --library-path YOUR_LIBRARY_PATH' {} \;

just change YOUR_HUGE_FOLDER and YOUR_LIBRARY_PATH to the target path and the library folder.

Feel free to change the "maxdepth" to how far into the folder you want to dive.

edit: made a few changes.

Last edited by seru1us; 05-10-2018 at 11:41 AM.
seru1us is offline   Reply With Quote