jmhobbs@pyhacker /posts/copy-every-nth-file
date
2008-07-16T19:15:33.000Z
whoami
jmhobbs
ls
comments content tags
attachments
wc content
145
cat content
Copy every nth file
This is a little gui that copies files from one directory to another directory. You can specify a step to selectively copy files (such as every tenth file, etc). I originally wrote this code to copy every nth pair of stereo images from one directory to another so there's an option for that (if selected, the code assumes the stereo images have a trailing _0 or _1 to specify left image and right image. It will copy pairs of images and count each pair as a file). This code requires wxPython. The gui was created using wxGlade. To compile the source to a Windoze binary, make sure you have py2exe installed and run:
python setup.py py2exe
The executable will be in the dist
directory. To compile the source into a
Mac OS X app, make sure you have py2app
installed and run:
python setup.py py2app
wc tags
software
wxpython
wxglade
cat comments