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.

1  
sS nameRelativeToPhysicalSubdirectory_nonCanonical(File inner, File outer) ctex {
2  
  if (inner == null || outer == null) null;
3  
  S path1 = inner.getAbsolutePath();
4  
  S path2a = outer.getAbsolutePath();
5  
  if (eq(path1, path2a)) ret "";
6  
  S path2 = addFileSep(path2a);
7  
  new Matches m;
8  
  if (startsWith(path1, path2, m))
9  
    ret m.rest();
10  
  else
11  
    null;
12  
}

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: 140 / 211
Version history: 3 change(s)
Referenced in: [show references]