Part of fixture.io View In Hierarchy
Known subclasses: fixture.io.DeletableDirPath
The instance will function exactly like a string but is enhanced with a few common methods from os.path. Note that path.split() is implemented as self.splitpath() since otherwise paths may not work right in other applications.
Method | __init__ | Undocumented |
Method | __setattr__ | self.new_directory = "rel/path/to/directory" |
Method | _wrap | Undocumented |
Method | abspath | os.path.abspath(self) |
Method | basename | os.path.basename(self) |
Method | dirname | os.path.dirname(self) |
Method | exists | os.path.exists(self) |
Method | join | os.path.join(self, *dirs) |
Method | mkdir | makes a directory in the root and returns its full path. |
Method | normpath | os.path.normpath(self) |
Method | putfile | puts new filename relative to your TempIO root. |
Method | realpath | os.path.realpath(self) |
Method | splitext | os.path.splitext(self) |
Method | splitpath | os.path.split(self) |
a new attribute will be created as a relative directory and the value will be stored as a new DirPath object.
the path is split each non-existant directory is made. returns full path to new directory.