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

10
LINES

< > BotCompany Repo | #1020298 // isSymLink

JavaX fragment (include)

1  
2  
sbool isSymLink(File f) {
3  
  ifdef Android
4  
  ret false; // TODO: Android API level 26 seems to include java.nio
5  
  endifdef
6  
  ifndef Android
7  
  import java.nio.file.Files;
8  
  ret f != null && Files.isSymbolicLink(toPath(f));
9  
  endifndef
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020298
Snippet name: isSymLink
Eternal ID of this version: #1020298/3
Text MD5: 317e0c89421f3455cf0e49544b91b1fe
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-09 12:37:08
Source code size: 244 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 355 / 368
Version history: 2 change(s)
Referenced in: [show references]