I'm using vagrant to clone my git repository. I deleted my repository from GitHub my git account. now trying to clone a repository couldn't error message is destination path already exist. how do I delete this already existing path and start afresh?
Asked
Active
Viewed 90 times
1 Answers
0
Similar to this answer, you can:
- test if a folder exist (
File.directory?(directory)
) - delete it, using
FileUtils.rmdir(disks_directory)
(as used in this Vagrant script)

VonC
- 1,262,500
- 529
- 4,410
- 5,250