Troubleshooting
The problems people actually run into, roughly in order of how often we hear about them.
“no capture date” for files that definitely have one#
Start with inspect, which lists every date tsoqna can see and which one it would use:
$ tsoqna inspect DSC00218.ARW
DSC00218.ARW
exif:DateTimeOriginal 2026-08-15 18:15:02 (used)
exif:OffsetTimeOriginal +02:00
exif:DateTimeDigitized 2026-08-15 18:15:02
file:mtime 2026-08-16 07:02:44
If inspect shows nothing, the date may have been stripped by an editing or messaging app on export. --fallback mtime or --fallback filename (which understands names like 20260815_181502.jpg) can rescue those. If inspect shows a date but tsoqna still skips the file, please send us the output of tsoqna inspect --raw — that is a bug.
Video times are off by several hours#
MP4 and MOV files store their creation time in UTC, and many cameras get this wrong by writing local time instead. tsoqna assumes UTC (as the format says) and converts to your time zone. If your camera is one of the ones that writes local time, tell tsoqna:
tsoqna rename ~/Videos --video-time local
Permission denied#
tsoqna needs permission to rename files and to write in their folder. On macOS, the first time you run it on ~/Pictures or an external card, the system may block access until you give your terminal app access to files and folders in System Settings.
“cross-device move” and slow sorts#
When the destination is on a different disk than the source, a move is really a copy followed by a delete. tsoqna handles this, but it is slower and uses space on both sides for a while. Each file is verified before the original is removed, so an interrupted run never loses data; it just leaves some files in both places. Re-run the same command to finish, or undo to roll back.
Files sorted into the wrong year#
Usually a camera whose clock was never set and thinks it is 2000 or 2015. Find out which files are affected:
tsoqna inspect ~/Photos/2000 --summary
then rename them with --shift. See the camera-clock recipe.
Weird characters in names on Windows#
Camera models sometimes include characters like / or :. tsoqna replaces them with - on every system (see Patterns). Very long paths are supported on Windows 10 and later (since 1.2.1); if you see path-length errors on an older system, sort into a shorter destination.
It is slow on a big library#
Reading metadata is the expensive part. tsoqna reads files in parallel, one per core by default. On spinning disks, fewer jobs is often faster because the drive spends less time seeking: try -j 2. Excluding thumbnail caches and preview folders with [filter] exclude also helps more than you might expect.
Getting a debug log#
tsoqna sort ~/inbox --into ~/Photos -n -vv 2> tsoqna-debug.log
-v shows which metadata tag was used for each file; -vv adds timings and every tag considered. Logs contain file paths, so look through one before you attach it to a bug report.