1 | // subPath is relative and with slashes |
2 | sbool dirOrZipContainsPath(File location, S subPath) ctex { |
3 | if (location.isDirectory()) { |
4 | ret new File(location, subPath).exists(); |
5 | } else if (location.isFile()) { |
6 | ret zipFileContains_falseOnError(location, subPath); |
7 | } |
8 | false; |
9 | } |
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: | 172 / 199 |
Version history: | 4 change(s) |
Referenced in: | [show references] |