Delete folder when files does not exist


#1

how to delete folder only when files does not exis ?

like
Dir.delete “#{RAILS_ROOT}/public/images/#{property.id}/#{unit.id}”