1
I have a very large eBook library. The structure is as follows:
/Library
/Author Name
/Book Name
/{.pdf .mobi .epub eBook files}, {.opf metadata files}, {.jpg book cover files}
About 15% of the 11,000 "Book Name" folders I have contain only a .opf file and sometimes a .jpeg/.jpg/.png/.gif cover file, with no eBook files.
I would like to write something that can find folders that do not contain an eBook file (.pdf/.epub/.mobi) and delete the contents of the "Book Name" folder, the "Book Name" folder itself, and if it is the only "Book Name" folder in the "Author Name" folder, delete the "Author Name" folder, as well.
I am completely knew to this, but will continue to research and post my results here if someone else can't help me out.
Thanks Salvo, what a great solution. I'm going to try it out soon. – Bob – 2015-06-26T01:53:03.530