1 | sbool fileIsUnderAbsolutePath(File f, File dir) { |
2 | if (dir == null || f == null) false; |
3 | f = absoluteFile(f); |
4 | dir = absoluteFile(dir); |
5 | do { |
6 | f = dirOfFile(f); |
7 | if (eq(f, dir)) true; |
8 | } while (f != null); |
9 | false; |
10 | } |
Began life as a copy of #1019186
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022904 |
Snippet name: | fileIsUnderAbsolutePath |
Eternal ID of this version: | #1022904/1 |
Text MD5: | d642b83dc18ce9cc7f53580687ec7c83 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-14 19:47:12 |
Source code size: | 236 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 280 / 299 |
Referenced in: | [show references] |