Package portage :: Package util :: Module listdir
[hide private]

Module listdir

source code

Functions [hide private]
 
cacheddir(my_original_path, ignorecvs, ignorelist, EmptyOnError, followSymlinks=True) source code
List
listdir(mypath, recursive=False, filesonly=False, ignorecvs=False, ignorelist=[], followSymlinks=True, EmptyOnError=False, dirsonly=False)
Portage-specific implementation of os.listdir
source code
Variables [hide private]
  dircache = {}
  __package__ = 'portage.util'

Imports: errno, stat, sys, zip, os, VCS_DIRS, DirectoryNotFound, PermissionDenied, PortageException, normalize_path


Function Details [hide private]

listdir(mypath, recursive=False, filesonly=False, ignorecvs=False, ignorelist=[], followSymlinks=True, EmptyOnError=False, dirsonly=False)

source code 

Portage-specific implementation of os.listdir

Parameters:
  • mypath (String) - Path whose contents you wish to list
  • recursive (Boolean @param filesonly; Only return files, not more directories) - Recursively scan directories contained within mypath
  • ignorecvs (Boolean) - Ignore VCS directories
  • ignorelist (List) - List of filenames/directories to exclude
  • followSymlinks (Boolean) - Follow Symlink'd files and directories
  • EmptyOnError (Boolean) - Return [] if an error occurs (deprecated, always True)
  • dirsonly (Boolean) - Only return directories.
  • filesonly (Boolean)
Returns: List
A list of files and directories (or just files or just directories) or an empty list.