please include function checkFileNotTooBigToRead. svoid setMaxFileSizeAllowedToReadInThread(final int size) { checkFileNotTooBigToRead_tl.set(voidfunc(File f) { long l = fileSize(f); if (l > size) fail("File too big to read: " + f + " (" + l + "/" + size + ")"); }); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015742 |
Snippet name: | setMaxFileSizeAllowedToReadInThread |
Eternal ID of this version: | #1015742/1 |
Text MD5: | 6335e4871f54393b1beb3285239b4da5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-26 20:23:15 |
Source code size: | 295 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 368 / 401 |
Referenced in: | [show references] |