Functions | |
| def | findFiles (rootpath, excludes=None) |
| def | walktree (rootpath, callback, **kwargs) |
| def | TEST_findFiles () |
| def | visitfile_withargs (file, rootid) |
| def | visitfile_withoutargs (file) |
| def | TEST_walktree () |
Variables | |
| string | __author__ = "gboulant" |
| string | __date__ = "$21 mai 2010 18:00:23$" |
| TESTDOCDIR = os.path.join(os.environ["KERNEL_ROOT_DIR"],"share") | |
| def KERNEL_PY.kernel.syshelper.findFiles | ( | rootpath, | |
excludes = None |
|||
| ) |
This looks after files recursively from the specified rootpath, but without visiting directories whose basename is in the list @param excludes.
Referenced by KERNEL_PY.kernel.syshelper.TEST_findFiles().
| def KERNEL_PY.kernel.syshelper.TEST_findFiles | ( | ) |
References KERNEL_PY.kernel.syshelper.findFiles().
| def KERNEL_PY.kernel.syshelper.TEST_walktree | ( | ) |
References unittester.run(), and KERNEL_PY.kernel.syshelper.walktree().
| def KERNEL_PY.kernel.syshelper.visitfile_withargs | ( | file, | |
| rootid | |||
| ) |
| def KERNEL_PY.kernel.syshelper.visitfile_withoutargs | ( | file | ) |
| def KERNEL_PY.kernel.syshelper.walktree | ( | rootpath, | |
| callback, | |||
| ** | kwargs | ||
| ) |
This recursively descends the directory tree rooted at rootpath, calling the callback function for each regular file
Referenced by KERNEL_PY.kernel.syshelper.TEST_walktree().
|
private |
|
private |
| string KERNEL_PY.kernel.syshelper.TESTDOCDIR = os.path.join(os.environ["KERNEL_ROOT_DIR"],"share") |