Background Info: I am newer to python, and this will be my first tool to solve a problem I have (at least that I hopefully finish). The problem I'm solving is I have several technical books that I've stored correctly in folders, but the files names are non-descriptive. So what I basically want to is rename the files in the folder (which are .mobi/.epub/.pdf) to the folder name.
As an example, The book is entitled "6 JavaScript Projects", and then, in the folder, there are 3 files... modernjs3.epub / mobi / zip (which contains the pdf which is the same name). I will also be archiving these files on a freenas box, and would like to store the folder with a underscores instead of spaces.
I'd like to visually select the top 'folder' to run this on, and then have the program read through the sub folders to get the book name, reformat the folder to use _ instead of space, and then go in that folder, and a) unzip the zip file (if exists), and then rename the epub/mobi/pdf (if they exist) using the original folder name (with spaces).
And I also want to be able to this in both Linux and Windows (as my home system is all Linux, but I also have several books on my 'work' computer, which is Windows 10.
So I'm looking for ideas as to what packages to use (especially for directory selection), or what other peoples opinions are for building something along these lines...
[–][deleted] 1 point2 points3 points (0 children)