Forum: Ruby delete folder when files does not exist

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
misiek (Guest)
on 2006-03-02 20:18
(Received via mailing list)
how to delete folder  only when files does not exis ?

like
Dir.delete "#{RAILS_ROOT}/public/images/#{property.id}/#{unit.id}"
This topic is locked and can not be replied to.