Package pybaz :: Module pathname :: Class PathName
[frames] | no frames]

Class PathName

source code

object --+        
         |        
basestring --+    
             |    
           str --+
                 |
                PathName
Known Subclasses:
DirName, FileName

String with extra methods for filename operations.



Instance Methods
 
__div__(self, path)
 
__repr__(self)
repr(x)
 
abspath(self)
 
dirname(self)
 
basename(self)
 
realpath(self)
 
splitname(self)

Inherited from str: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __rmod__, __rmul__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, index, isalnum, isalpha, isdigit, islower, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from object: __delattr__, __init__, __reduce__, __reduce_ex__, __setattr__

Static Methods
 
__new__(cls, path='.')
Properties

Inherited from object: __class__

Method Details

__new__(cls, path='.')
Static Method

 


Returns:
a new object with type S, a subtype of T

Overrides: str.__new__
(inherited documentation)

__repr__(self)
(Representation operator)

 
repr(x)

Overrides: str.__repr__
(inherited documentation)