Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1034043 // zipFileToJSONFingerprint_md5 - list each file name with md5

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4729L/27K).

static L<Map> zipFileToJSONFingerprint_md5(File zip) {
  temp zipFile = zipFile(zip);
  ret zipFileToJSONFingerprint_md5(zipFile);
}

static L<Map> zipFileToJSONFingerprint_md5(ZipFile zip) {
  ret map(listZipEntries(zip), e -> ctex {
    ret litorderedmap(
      name := e.getName(),
      md5 := md5OfStream(zip.getInputStream(e))
    );
  });
}

Author comment

Began life as a copy of #1034019

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034043
Snippet name: zipFileToJSONFingerprint_md5 - list each file name with md5
Eternal ID of this version: #1034043/5
Text MD5: 9ca3d037b4f4b7247a5b57376e65ed67
Transpilation MD5: 52b1275d6a83d98a0eb4199cc979aa78
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-18 13:33:43
Source code size: 359 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 87 / 159
Version history: 4 change(s)
Referenced in: [show references]