Reputation: 473
I would like to be able to remove the folder "OLDFOLDER" and its sub folder in the following folder structure via a ruby script in linux (Im pretty new to ruby and Linux).
/X/Y/Z/OLDFOLDER/SUBFOLDERS
I know there are ways to remove folders in ruby, for example:
removeOldFolder = "rm /X/Y/Z/OLDFOLDER/"
`#{removeOldFolder}`
but i am not sure how to remove folders like the structure i have above,
Any help much appreciated
Upvotes: 1
Views: 85