Dir and File API changes.