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

10
LINES

< > BotCompany Repo | #1022904 // fileIsUnderAbsolutePath

JavaX fragment (include)

sbool fileIsUnderAbsolutePath(File f, File dir) {
  if (dir == null || f == null) false;
  f = absoluteFile(f);
  dir = absoluteFile(dir);
  do {
    f = dirOfFile(f);
    if (eq(f, dir)) true;
  } while (f != null);
  false;
}

Author comment

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: 278 / 297
Referenced in: [show references]