This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
def delete_unmatched_xmp_files(directory): | |
""" | |
Recursively delete .xmp files in a directory if the corresponding base file (e.g., .jpg, .png, .nef) does not exist. | |
:param directory: The directory to search for .xmp files. | |
""" |