|
|
__init__(self,
path='')
Create a new instance. |
|
|
|
string
|
__str__(self)
Returns the current path as a string in the following format: |
|
|
|
ResourcePath
|
__add__(self,
other)
Concatenate two path objects. |
|
|
|
int
|
__len__(self)
Returns the number of elements in the path. |
|
|
|
|
set(self,
path='')
Point the object to the given path. |
|
|
|
string
|
get(self)
Returns the current path as a string in the following format: |
|
|
|
string
|
hex(self)
Returns the current path as a string in the following format: |
|
|
|
string
|
bin(self)
Returns the current path as binary data. |
|
|
|
int
|
|
|
int
|
|
|
ResourcePath
|
crop(self,
n=1)
Crops the path by n components and returns a ResourcePath that
points to the new path. |
|
|
|
ResourcePath
|
append(self,
id)
Appends the given id to the path and returns a ResourcePath that
points to the new path. |
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|