Operating System Tools (xonsh.lib.os)

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

xonsh.lib.os.indir(d)

Context manager for temporarily entering into a directory.

xonsh.lib.os.rmtree(dirname, force=False)

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:
dirname : str

Directory to be removed

force : bool

If True force removal, defaults to False