# File lib/file_systems/AppleDos.rb, line 258
def self.catalog_filename(filename)
    s=""
    for i in 0..29
      c=(filename[i])
      if c.nil? then
        c=0xA0        
        else 
        c=(c|0x80)
      end
      s+=c.chr
    end
    s
end