Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1004523 // Set temp file retention time

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (687L/5K/17K).

!752

p {
  int days = args.length != 0 ? parseInt(args[0]) : 30;
  
  saveTextFile(getProgramFile("#1001638", "temp-file-retention-time"), str(days*24));
  
  print("Retention time set to " + n(days, "day") + "!");
}

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: #1004523
Snippet name: Set temp file retention time
Eternal ID of this version: #1004523/1
Text MD5: 1b3629cbbd5708ec35f35234c3a5b4c3
Transpilation MD5: 75bbb31818abb8055837531e06ce55d1
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-19 16:04:06
Source code size: 225 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 478 / 476
Referenced in: [show references]