Hi All,
I am trying to delete few files with specific extension ( say x.ppt, y.ppt,
z.ppt) or in the format of say J_x.ppt, J_y.ppt, J_z.ppt etc...
for a single file deletion , I can use File.delete(C:\Documents and
Settings\sinhaa\My Documents\x.ppt) which works fine but if i need to
delete all
Check out the documentation for FileUtils#rm:
http://ruby-doc.org/core/classes/FileUtils.html#M004332
You can glob files and pass them to rm.
-c
On Tue, Feb 2, 2010 at 8:32 AM, arihan sinha arihan.si...@googlemail.comwrote:
Hi All,
I am trying to delete few files with specific extension (
Thanks.
Though bit struggled initially but finally able to :)
Arihan
On Tue, Feb 2, 2010 at 3:47 PM, Charley Baker charley.ba...@gmail.comwrote:
Check out the documentation for FileUtils#rm:
http://ruby-doc.org/core/classes/FileUtils.html#M004332
You can glob files and pass them to rm.