Created
December 1, 2021 13:33
-
-
Save dankimio/c41c3d963f9625db1b70919d761520be to your computer and use it in GitHub Desktop.
Find orphan photos
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
| PATH = '/Volumes/LaCie/Photos/Lightroom Catalog 2021/' | |
| Dir.chdir(PATH) | |
| rafs = Dir['*.raf'] | |
| rafs.each do |raf| | |
| filename = raf.split('.').first | |
| next if Dir["#{filename}.jpg"].any? | |
| puts raf | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment