Added functional for delete file and create directory