Libraryless. Click here for Pure Java version (42L/1K/2K).
static S numberFileNameNotUsedInDir(File dir) { int n = 0; File f; do { f = new File(dir, str(++n)); } while (f.exists()); ret f.getName(); }
Began life as a copy of #1015318
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: | #1021040 |
Snippet name: | numberFileNameNotUsedInDir |
Eternal ID of this version: | #1021040/2 |
Text MD5: | 62d770b07fd7c3516dd25844e29b87d0 |
Transpilation MD5: | d262451cdbbd080512ba478369108068 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-19 17:08:28 |
Source code size: | 162 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 301 / 378 |
Version history: | 1 change(s) |
Referenced in: | [show references] |