Package commons :: Module path
[hide private]
[frames] | no frames]

Module path

source code

path.py - An object representing a path to a file or directory.

Example:

 from path import path
 d = path('/home/guido/bin')
 for f in d.files('*.py'):
   f.chmod(0755)

This module requires Python 2.6 or later.

URL: http://www.jorendorff.com/articles/python/path


Authors:
Jason Orendorff <jason.orendorff@gmail.com> (and others - see the url!), Yang Zhang <yaaang@gmail.com>

Date: 2009

Version: 2.6

Classes [hide private]
  TreeWalkWarning
  path
Represents a filesystem path.
Variables [hide private]
  win32security = None
hash(x)
  basestring = str, unicode
  _textmode = 'U'
  __package__ = 'commons'