Rewrite of File plugin