From 73f79ed5b15335e7c2e56b9a33a0adff75bb3d28 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 12 Mar 2019 15:04:59 +0100 Subject: [PATCH] gems/vfs.h: add Directory::unlink This is needed to accommodate the fs_tool component. Issue #3222 --- repos/gems/include/gems/vfs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repos/gems/include/gems/vfs.h b/repos/gems/include/gems/vfs.h index 79ce5c9e68..ea43d3cb6d 100644 --- a/repos/gems/include/gems/vfs.h +++ b/repos/gems/include/gems/vfs.h @@ -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()); + } };