Skip to content

Instantly share code, notes, and snippets.

@kevinmorio
kevinmorio / zotfile-user-wildcards.json
Created December 15, 2020 14:52
ZotFile user wildcards for title and original date
{
"T": {
"field": "title",
"operations": [
{
"function": "replace",
"regex": "\\s*[.:;?!|].*",
"replacement": ""
},
{
#!/usr/bin/env python3
'''
A script to recursively compare two directories (including file size and file hash changes)
Usage: python3 compare_dirs.py DIR1 DIR2
'''
import os, sys, hashlib, unicodedata
COMPARE_FILES = True # should file sizes be compared if their names are the same?