gems/vfs.h: add Directory::unlink

This is needed to accommodate the fs_tool component.

Issue #3222
This commit is contained in:
Norman Feske 2019-03-12 15:04:59 +01:00 committed by Christian Helmuth
parent 4264de05f9
commit 73f79ed5b1

View File

@ -283,6 +283,11 @@ struct Genode::Directory : Noncopyable, Interface
return Path(Genode::Cstring(buf, out_count));
}
void unlink(Path const &rel_path)
{
_fs.unlink(join(_path, rel_path).string());
}
};