Version: 9.15.0
KERNEL_PY.kernel.syshelper Namespace Reference

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")
 

Function Documentation

◆ findFiles()

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().

◆ TEST_findFiles()

def KERNEL_PY.kernel.syshelper.TEST_findFiles ( )

◆ TEST_walktree()

def KERNEL_PY.kernel.syshelper.TEST_walktree ( )

◆ visitfile_withargs()

def KERNEL_PY.kernel.syshelper.visitfile_withargs (   file,
  rootid 
)

◆ visitfile_withoutargs()

def KERNEL_PY.kernel.syshelper.visitfile_withoutargs (   file)

◆ walktree()

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().

Variable Documentation

◆ __author__

string KERNEL_PY.kernel.syshelper.__author__ = "gboulant"
private

◆ __date__

string KERNEL_PY.kernel.syshelper.__date__ = "$21 mai 2010 18:00:23$"
private

◆ TESTDOCDIR

string KERNEL_PY.kernel.syshelper.TESTDOCDIR = os.path.join(os.environ["KERNEL_ROOT_DIR"],"share")