This might need to be ::File because chef implements their own the File class. In receipes it definitely needs ::