amule-project / amule

'All-platform' P2P client based on eMule
1.01k stars 221 forks source link

/home/user/.aMule/Temp is too big - 6GB large - Remind user disk space usage and allow conveniently remove oldest inactive #345

Open slrslr opened 2 years ago

slrslr commented 2 years ago

Hello, aMule 2.3.3 on Linux /home/user/.aMule/Temp is big. When i check folder content using Linux ncdu ($ ncdu $HOME/.aMule/Temp), i see:

  699.4 MiB [##########]  082.part
  585.2 MiB [########  ]  077.part
  392.5 MiB [#####     ]  005.part
  380.4 MiB [#####     ]  006.part
  352.8 MiB [#####     ]  018.part
  338.4 MiB [####      ]  070.part
  315.4 MiB [####      ]  023.part
  246.8 MiB [###       ]  015.part
  222.7 MiB [###       ]  032.part
  199.2 MiB [##        ]  027.part
  198.0 MiB [##        ]  155.part
  197.6 MiB [##        ]  035.part
  196.7 MiB [##        ]  004.part
  188.9 MiB [##        ]  020.part
  165.9 MiB [##        ]  059.part
  129.9 MiB [#         ]  057.part
  112.0 MiB [#         ]  045.part

Apparently these are download incomplete files. I see that in Settings / Directories i can set folder for temporarily downloaded files. I have not tried this, so do not know if it properly relocate files, but this worked for me to move and symlink old location to new:

mv $HOME/.aMule/Temp /external/drive/path/Incomplete/amule/ && ln -s $HOME/.aMule/Temp /external/drive/path/Incomplete/amule/Temp

Somehow i forgot these incomplete files takes that much disk space for years -> It may be handy if aMule shows the disk space utilized by incomplete files right in main view and possibly save path of incomplete files, clicking it opens Settings / Directories. So user possibly then sorts files by date added or last date active so i can bulk remove oldest inactive files.