Edit deleteFile and prepareFolder