directory packing script