1 | static File appendToFileNameBeforeExtension(File f, S s) {
|
2 | S ext = fileExtension(f); |
3 | S name = dropSuffixIC(ext, f.getName()); |
4 | name += s; |
5 | ret newFile(parentFile(f), name + ext); |
6 | } |
Began life as a copy of #1015405
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1015406 |
| Snippet name: | appendToFileNameBeforeExtension |
| Eternal ID of this version: | #1015406/3 |
| Text MD5: | 350f3144d0d7a7c25df01e4cd1306623 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-13 17:39:02 |
| Source code size: | 191 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 660 / 736 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |