def fix_entity(entity)
      {
        path: entity[:path],
        filetime: Zip::DOSTime.at(entity[:time] || File.mtime(entity[:path])),
        binary_name: string_to_bytes(abs_path_for_entity(entity)),
        zip_path: abs_path_for_entity(entity)
      }
    end
def fix_entity(entity)
      {
        path: entity[:path],
        filetime: Zip::DOSTime.at(entity[:time] || File.mtime(entity[:path])),
        binary_name: string_to_bytes(abs_path_for_entity(entity)),
        zip_path: abs_path_for_entity(entity)
      }
    end
Fix an entity: time -> DOSTime object, name -> abs path in zip & encoded