static File appendToFileNameBeforeExtension(File f, S s) { S ext = fileExtension(f); S name = dropSuffixIC(ext, f.getName()); name += s; ret newFile(parentFile(f), name + ext); }
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: | 401 / 458 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |