Added defined check for the File directory