throws FilePermissionException if extension is unable to publish.

Signed-off-by: crynobone <crynobone@gmail.com>