raise warning when there is no correct file or directory