To delete a folder in Ruby you can use the following snippet.
Sample Ruby
import os os.rmdir(ourdir) #use with an empty dir import shutil shutil.rmtree(ourdir) #use with a non empty dir
All the Code Snippets and Samples you need
To delete a folder in Ruby you can use the following snippet.
import os os.rmdir(ourdir) #use with an empty dir import shutil shutil.rmtree(ourdir) #use with a non empty dir
You must be logged in to post a comment.
RT @CodeSnippetsNET: Delete a folder in #Ruby http://t.co/6m8C8ThkKx #programming #code #coding #dev #developer #develop