Libraryless. Click here for Pure Java version (42L/1K/2K).
1 | static S numberFileNameNotUsedInDir(File dir) {
|
2 | int n = 0; |
3 | File f; |
4 | do {
|
5 | f = new File(dir, str(++n)); |
6 | } while (f.exists()); |
7 | ret f.getName(); |
8 | } |
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: | 512 / 646 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |