Package pybaz :: Module util
[frames | no frames]

Module pybaz.util

Obsolete utility module

Function Summary
  copyfrom(srcdir, destdir, verbose)
Copy the contents of @srcdir into @destdir using a tar pipe.
  exec_safe_silent(program, args, expected, chdir)
Silently runs the specified program.
  exec_safe_stdout(program, args, expected, chdir, logger)
  maketree(path, addpath, ignore, res)
Sorted recursive listing of the directory at @path.
  new_numbered_name(dir, prefix)
  sorttree(srctree)

Function Details

copyfrom(srcdir, destdir, verbose=False)

Copy the contents of @srcdir into @destdir using a tar pipe.

All files in @srcdir will be copied into @destdir and files which
are unique to @destdir will be preserved. Sparse files and
permissions from @srcdir will be preserved.

The sparse file preservation feature causes a dependence on GNU tar.

exec_safe_silent(program, args=[], expected=0, chdir=None)

Silently runs the specified program.

maketree(path, addpath=DirName('.'), ignore=[], res=None)

Sorted recursive listing of the directory at @path.

@ignore is a list of regular expression strings. Files and
directories which match any of these are skipped.

The listing is actually a list of DirName and FileName objects.
They are storted directories first, then files.

Generated by Epydoc 2.1 on Thu Feb 2 14:21:53 2006 http://epydoc.sf.net