Welcome To Snipplr


Everyone's Recent Python Snippets Tagged file



« Prev 1 Next »
This file starts at the bottom of the tree and recursively moves all of the files from that tree into another folder. To avoid overwriting files I prepended all of the files with a 9digit number.
0 2366 posted 11 years ago by jlmarks
Place this snippent in your script, and call it like this: urllib.urlretrieve(getFile, saveFile, reporthook=report) Notice it is the 3rd argument that calls the function on each file that needs to be downloaded.
1 3670 posted 12 years ago by o0110o
This allows you to take a node that has expressions in it and create copies of them that are hard pathed. It will also disable said expression driven write nodes and disable them.
0 1382 posted 12 years ago by throb
0 1121 posted 13 years ago by scrapy
0 1406 posted 14 years ago by magicrebirth
2 1800 posted 14 years ago by magicrebirth
Tres formas de comprobar la existencia de un archivo: Three ways to test the existence of a file:
0 1457 posted 14 years ago by eliluminado
save as a file and run....
0 2419 posted 14 years ago by magicrebirth
0 2497 posted 15 years ago by iloveitaly
Creates backups of "file.ext" in the form "file.Bx.ext", where Bx represents a sequential backup number from 1 (most recent) to 5 (oldest) Put the following symbolic links in your path ln -s path-to-this-file/age.py age ln -s path-to-...
0 1206 posted 15 years ago by SimonTite
2 1713 posted 16 years ago by manatlan
0 1241 posted 16 years ago by manatlan
2 1788 posted 18 years ago by whitetiger
0 1144 posted 18 years ago by whitetiger
« Prev 1 Next »