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

9
LINES

< > BotCompany Repo | #1031551 // dirOrZipContainsPath

JavaX fragment (include)

// subPath is relative and with slashes
sbool dirOrZipContainsPath(File location, S subPath) ctex {
  if (location.isDirectory()) {
    ret new File(location, subPath).exists();
  } else if (location.isFile()) {
    ret zipFileContains_falseOnError(location, subPath);
  }
  false;
}

Author comment

Began life as a copy of #1031474

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031551
Snippet name: dirOrZipContainsPath
Eternal ID of this version: #1031551/5
Text MD5: 20581babe4d326a8cceef7f6022ac64b
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-21 22:59:35
Source code size: 291 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 92 / 115
Version history: 4 change(s)
Referenced in: [show references]