This is a proposal to implement unlink() and rmdir() in tbot.machine.linux.path.Path to conveniently remove empty directories, symlinks and files from a host's filesystem using the shell commands rmdir and rm, respectively.
Tests were added/extended to assert reasonable behavior of the new methods.
The unlink method was equipped with a missing_ok parameter for compatibility to pathlib.Path.unlink().
This is a proposal to implement
unlink()
andrmdir()
intbot.machine.linux.path.Path
to conveniently remove empty directories, symlinks and files from a host's filesystem using the shell commandsrmdir
andrm
, respectively.Tests were added/extended to assert reasonable behavior of the new methods.
The unlink method was equipped with a
missing_ok
parameter for compatibility topathlib.Path.unlink()
.Signed-off-by: Bernhard Kirchen bernhard.kirchen@mbconnectline.com