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

3
LINES

< > BotCompany Repo | #1030637 // dirOtherwiseNull - return null if directory doesn't exist

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

Libraryless. Click here for Pure Java version (53L/1K).

static File dirOtherwiseNull(File dir) {
  ret isDirectory(dir) ? dir : null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030637
Snippet name: dirOtherwiseNull - return null if directory doesn't exist
Eternal ID of this version: #1030637/1
Text MD5: ec198dd339f9604ecb753b2222dea754
Transpilation MD5: 6e9d4374dac7841fd9fa79f191fe71ec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-02-09 10:32:56
Source code size: 81 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 142
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)