add permissions, delete empty files