Created
June 30, 2020 20:44
-
-
Save takuan-osho/4c2b560aa311270cb9b87721140cb92d to your computer and use it in GitHub Desktop.
search for epub files in Calibre Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
CALIBRE_LIB_DIR = Path.home() / Path("Calibre Library") | |
def main(): | |
epub_files = CALIBRE_LIB_DIR.glob("**/*.epub") | |
for epub in sorted(epub_files): | |
print(epub.resolve()) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment