xonsh.lib.os#

Xonsh extension of the standard library os module, using xonsh for subprocess calls

xonsh.lib.os.indir(d)#

alias to push_d context manager

xonsh.lib.os.rmtree(dirname, force=False)[source]#

Remove a directory, even if it has read-only files (Windows). Git creates read-only files that must be removed on teardown. See https://stackoverflow.com/questions/2656322 for more info.

Parameters:
dirnamestr

Directory to be removed

forcebool

If True force removal, defaults to False