void () { createDirectory(root, "dir"); createFile(root, "dir/file"); rename(root, "dir", "new dir"); assertTrue(root.hasEntry("new dir")); assertTrue(root.hasEntry("new dir/file")); assertFalse(root.hasEntry("dir")); assertFalse(root.hasEntry("dir/file")); }