added deleteDir to Files