• Grzegorz Bizon's avatar
    Change format of artifacts metadata from text to binary 0.0.1 · 387b2781
    Grzegorz Bizon authored
    This changes the format of metadata to handle paths, that may contain
    whitespace characters, new line characters and non-UTF-8 characters.
    
    Now those paths along with metadata in JSON format are stored as
    length-prefixed strings (uint32 prefix).
    
    Metadata file has a custom format:
    
    1.   First string field is metadata version field (string)
    2.   Second string field is metadata errors field (JSON strong)
    3.   All subsequent fields is pair of path (string) and path metadata
         in JSON format.
    
    Path's metadata contains all fields that where possible to extract from
    ZIP archive like date of modification, CRC, compressed size,
    uncompressed size and comment.
    387b2781