Generate files resource