Skip to content

Instantly share code, notes, and snippets.

@takuan-osho
Created June 30, 2020 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuan-osho/4c2b560aa311270cb9b87721140cb92d to your computer and use it in GitHub Desktop.
Save takuan-osho/4c2b560aa311270cb9b87721140cb92d to your computer and use it in GitHub Desktop.
search for epub files in Calibre Library
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