A collection of tools for interacting with the command line.
The contents of this module have not been tested in Windows.
A class representing a shell session.
In its present implementation, this class can only be expected to work properly in Linux.
Methods
Change the working directory.
Parameters : | directory : str
|
---|
Send a command and read the response.
Parameters : | command : str
shell : bool
|
---|---|
Returns : | str :
|
Copy a file or folder.
Parameters : | source : str
target : str
recursive : bool
|
---|
Notes
If recursive is not set and source is a folder with contents, the operation will fail.
Extend a path-like environment variable.
Parameters : | name : str
value : str
start : bool
forceReplace : bool
|
---|
Move a file or folder.
Parameters : | source : str
target : str
force : bool
|
---|
Move the contents of a directory from one location to another.
Parameters : | source : str
target : str
force : bool
|
---|
Remove a regular file.
Parameters : | fileName : str
|
---|
Remove a directory.
Parameters : | directory : str
recursive : bool
|
---|
Remove the contents of a directory.
Parameters : | directory : str
filesOnly : bool
ignoreHidden : bool
|
---|