Flowdock
method

rm

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: FileUtils
rm(list, options = {}) public

Options: force noop verbose

Remove file(s) specified in list. This method cannot remove directories. All StandardErrors are ignored when the :force option is set.

FileUtils.rm %w( junk.txt dust.txt )
FileUtils.rm Dir.glob('*.so')
FileUtils.rm 'NotExistFile', :force => true   # never raises exception
Show source
Register or log in to add new notes.