1 | static File dirOfFile_orDot(File f) { |
2 | if (f == null) null; |
3 | File dir = f.getParentFile(); |
4 | ret dir != null ? dir : newFile("."); |
5 | } |
Began life as a copy of #1015324
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025334 |
Snippet name: | dirOfFile_orDot - to include relative paths |
Eternal ID of this version: | #1025334/1 |
Text MD5: | d168219006f89cf3b6fc9f66fc7d5eae |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-23 13:38:25 |
Source code size: | 138 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 250 / 276 |
Referenced in: | [show references] |