Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1:/tmp/cvs-serv20260/python/Doc/lib Modified Files: libos.tex Log Message: walk() docs: Emphasize that the recursive-delete example is dangerous. Index: libos.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v retrieving revision 1.122 retrieving revision 1.123 diff -C2 -d -r1.122 -r1.123 *** libos.tex 28 Apr 2003 03:13:02 -0000 1.122 --- libos.tex 28 Apr 2003 19:15:10 -0000 1.123 *************** *** 1127,1130 **** --- 1127,1132 ---- from os.path import join # Delete everything reachable from the directory named in 'top'. + # CAUTION: This is dangerous! For example, if top == '/', it + # could delete all your disk files. for root, dirs, files in os.walk(top, topdown=False): for name in files: