I have a security camera that records on motion detect and the way I get it off the camera is either to take the SD card out and copy it or I can FTP to it.
I'd like to create a dos program that automatically grabs the video, but I can't find a good way to iterate through the directories.
The structure is as follows:
Inside each of these directories there's another directory with a time-stamp "20150621_020331" in which the files are placed.
Any clever way of doing this?