Works great Jordon ! thanks again !!
Le mardi 20 novembre 2012 12:22:41 UTC+1, Jordon Bedwell a écrit : > > On Tue, Nov 20, 2012 at 5:18 AM, Jordon Bedwell > <[email protected]<javascript:>> > wrote: > > On Tue, Nov 20, 2012 at 5:08 AM, Erwin <[email protected] <javascript:>> > wrote: > >> I have a fixtures directory structure > >> > >> fixtures > >> en > >> alpha > >> beta > >> delta > >> es > >> alpha > >> beta > >> delta > >> > > __SNIP__ > > > >> is there a way to remove all folders with name 'alpha' in ALL locales > >> folder, and get a resulting structure > > > > FileUtils.rm_rf(Dir[Rails.root.join("spec/fixtures", "**/alpha")], > > secure: true, force: true) > > Sorry ommit the force, I always forget that force is implied by rf > since I rarely use rf, so it should be > `FileUtils.rm_rf(Dir[Rails.root.join("spec/fixtures", "**/alpha")], > secure: true)`. I use r in production (and on development I trigger a > force but with constraints) because I like exceptions to be raised so > I know exactly what's going on in my filesystem but not all people > care about that > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/KqJZoUV9s_MJ. For more options, visit https://groups.google.com/groups/opt_out.

