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

12
LINES

< > BotCompany Repo | #1034454 // nameRelativeToPhysicalSubdirectory_nonCanonical - doesn't use canonical path

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

Transpiled version (5022L) is out of date.

sS nameRelativeToPhysicalSubdirectory_nonCanonical(File inner, File outer) ctex {
  if (inner == null || outer == null) null;
  S path1 = inner.getAbsolutePath();
  S path2a = outer.getAbsolutePath();
  if (eq(path1, path2a)) ret "";
  S path2 = addFileSep(path2a);
  new Matches m;
  if (startsWith(path1, path2, m))
    ret m.rest();
  else
    null;
}

Author comment

Began life as a copy of #1032129

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034454
Snippet name: nameRelativeToPhysicalSubdirectory_nonCanonical - doesn't use canonical path
Eternal ID of this version: #1034454/4
Text MD5: 6ef01487b16ea0a85dd91df823c0f409
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-01 21:14:26
Source code size: 365 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 77 / 126
Version history: 3 change(s)
Referenced in: [show references]