class path(str):
Method | __repr__ |
Undocumented |
Method | abspath |
Returns the absolute path. |
Method | basename |
Undocumented |
Method | bytes |
Returns the bytes in the file. |
Method | copytree |
Recursively copy a directory to the given destination . If the given destination does not exist it will be created. |
Method | exists |
Returns True if the path exist. |
Method | isabs |
Returns True if the path is absolute. |
Method | isdir |
Returns True if the path is a directory. |
Method | isfile |
Returns True if the path is a file. |
Method | islink |
Returns True if the path is a symbolic link. |
Method | ismount |
Returns True if the path is a mount point. |
Method | joinpath |
Joins the path with the argument given and returns the result. |
Method | lexists |
Returns True if the path exists unless it is a broken symbolic link. |
Method | listdir |
Undocumented |
Method | makedirs |
Recursively create directories. |
Method | movetree |
Recursively move the file or directory to the given destination similar to the Unix "mv" command. |
Method | open |
Undocumented |
Method | read_bytes |
Returns the bytes in the file. |
Method | read_text |
Returns the text in the file. |
Method | rmtree |
Removes the file or directory and any files or directories it may contain. |
Method | stat |
Returns a stat of the file. |
Method | text |
Returns the text in the file. |
Method | unlink |
Removes a file. |
Method | utime |
Undocumented |
Method | write_bytes |
Writes the given bytes to the file. |
Method | write_text |
Writes the given text to the file. |
Property | parent |
The name of the directory the file or directory is in. |
destination
. If the given
destination
does not exist it will be created.Parameters | |
destination:str | Undocumented |
symlinks:bool | If True symbolic links in the source tree result in symbolic links in the destination tree otherwise the contents of the files pointed to by the symbolic links are copied. |
Parameters | |
*args:Any | Undocumented |
Returns | |
path | Undocumented |
Returns | |
bool | Undocumented |
Parameters | |
mode:int | Undocumented |
exist_ok:bool | Undocumented |
Recursively move the file or directory to the given destination
similar to the Unix "mv" command.
If the destination
is a file it may be overwritten depending on the
os.rename
semantics.
Parameters | |
destination:str | Undocumented |
Undocumented
Parameters | |
mode:str | Undocumented |
**kwargs:Any | Undocumented |
Returns | |
IO | Undocumented |
Parameters | |
encoding:str | Undocumented |
**kwargs:Any | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
ignore_errors:bool | If True errors are silently ignored, otherwise an exception is raised in case an error occurs. |
onerror:Callable | A callback which gets called with the arguments func , path and
exc_info . func is one of os.listdir , os.remove
or os.rmdir . path is the argument to the function which
caused it to fail and exc_info is a tuple as returned by
sys.exc_info . |
Parameters | |
encoding:str | Undocumented |
**kwargs:Any | Undocumented |
Returns | |
str | Undocumented |
text
to the file.Parameters | |
text:str | Undocumented |
encoding:str | Undocumented |
**kwargs:Any | Undocumented |