-l flag you can enable log file writing. If supplied, your terminal window will no longer show outputs, but instead this will be output to a log file within the path of the directory. Useful for scripting.
dfg -l -d /path/to/files
Will result in a log file:
The log file will append, which means every time you run the the application, new log entries will follow older entries.
The default location of the log file, if you specify -l only, will be the directory of the scanned path; however, you can specify your own directory by using the
dfg -l -log /var/log/pictures.log -d /mnt/usb/pictures/
As log files append, you may want to create a new log file each time the program is run. To do this, add the date command to the
dfg -l -log /var/log/$(date +%F)_pictures.log -d /mnt/usb/pictures/
More on date outputs.