#!/usr/local/bin/ruby -w # Author:: Dirk Meyer # Copyright:: Copyright (c) 2008 - 2025 Dirk Meyer # License:: Distributes under the same terms as Ruby # Do not change the name of this class. class IrofferEvent # Admin Command: RUBY dir_as_desc def dir_as_desc pack = 0 while true do pack += 1 file = info_pack(pack, "file" ) break if file.nil? # use last directory name as pack description command( "chdesc", pack, file.split( "/" )[ -2 ] ) end end end # eof