Libraryless. Click here for Pure Java version (2541L/16K).
static File assertIsFile(File f) { if (!isFile(f)) fail(isDir(f) ? "Directory, not file: " + f : "File not found: " + f); ret f; }
Began life as a copy of #1016158
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029947 |
Snippet name: | assertIsFile |
Eternal ID of this version: | #1029947/1 |
Text MD5: | 6a195a6ca359dce537e118f65a920079 |
Transpilation MD5: | 39a99fe268bbedb40ed326ff24de8832 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-10-14 13:57:13 |
Source code size: | 137 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 190 / 258 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |