Package PyFoam :: Package Basics :: Module Utilities
[hide private]
[frames] | no frames]

Module Utilities

source code

Utility functions

Can be used via a class or as functions

Classes [hide private]
  Utilities
Class with utility methods
Functions [hide private]
 
copyfile(src, dest)
Calls the method of the same name from the Utilites class
source code
 
copytree(src, dest, symlinks=False, force=False)
Calls the method of the same name from the Utilites class
source code
 
diskUsage(fpath)
Calls the method of the same name from the Utilites class
source code
 
execute(cmd, debug=False, workdir=None, echo=None)
Calls the method of the same name from the Utilites class
source code
 
find(pattern, path, directoriesToo=True)
Calls the method of the same name from the Utilites class
source code
 
humanReadableSize(num)
Calls the method of the same name from the Utilites class
source code
 
listDirectory(d)
Calls the method of the same name from the Utilites class
source code
 
remove(f)
Calls the method of the same name from the Utilites class
source code
 
rmtree(path, ignore_errors=False)
Calls the method of the same name from the Utilites class
source code
 
which(prog)
Calls the method of the same name from the Utilites class
source code
 
writeDictionaryHeader(f)
Calls the method of the same name from the Utilites class
source code
Variables [hide private]
  PIPE = -1
  STDOUT = -2
  __package__ = 'PyFoam.Basics'

Imports: Popen, error, fnmatch, listdir, os, path, print_, re, removeFile, shutil, subprocess, sys, warning