create file resource