Removing dir and adding file