def METHOD_NAME(manager: storage.SharedFSStorageManager) -> None:
    def permission_error(_: Any, __: str) -> None:
        raise PermissionError("Permission denied")
    with unittest.mock.patch("pathlib.Path.open", permission_error):
        with unittest.mock.patch("builtins.open", permission_error):
            assert len(os.listdir(manager._base_path)) == 0
            with pytest.raises(PermissionError, match="Permission denied"):
                storage.validate_manager(manager)
            assert len(os.listdir(manager._base_path)) == 1