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

11
LINES

< > BotCompany Repo | #1034019 // zipFileToJSONFingerprint_dateOnly - list each file name with date

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

Libraryless. Click here for Pure Java version (4693L/26K).

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

static L<Map> zipFileToJSONFingerprint_dateOnly(ZipFile zip) {
  ret map(listZipEntries(zip), e ->
    litorderedmap(name := e.getName(),
      date := e.getTime()/1000,
    ));
}

Author comment

Began life as a copy of #1033926

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034019
Snippet name: zipFileToJSONFingerprint_dateOnly - list each file name with date
Eternal ID of this version: #1034019/1
Text MD5: 220ea375b75a099e3e4b85d9f8fce81f
Transpilation MD5: cb4459a728dd1a74cb391908927b1018
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-17 15:41:44
Source code size: 333 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 188 / 249
Referenced in: [show references]