Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up tmp-folders. #529

Closed
aengelke opened this issue Jun 15, 2013 · 7 comments
Closed

Clean up tmp-folders. #529

aengelke opened this issue Jun 15, 2013 · 7 comments

Comments

@aengelke
Copy link
Contributor

It'd be nice if Processing would delete unused tmp-folders. (After 1 month of use I had more than 1000 folders!)

@mckennapsean
Copy link
Contributor

...or perhaps create a setting for it in the PDE.

Then it can be cleared out manually with a button, or set to automatically remove older folders.

@hamoid
Copy link
Contributor

hamoid commented Jul 3, 2013

Or for geeks: mount your /tmp as a ram drive. It gets cleared every time you shut down your computer, your hard drive gets a longer live, and if you export images from processing to /tmp, they get written in half the time :)

@martiSteiger
Copy link

Please notice that there are additional temp files (*.err, *.log) using MS-Windows at
C:\Users\AppData\Roaming\Processing\console for cleaning.

!!! In any case realizing temp-files cleaning up should be a major issue for processing v3.0 !!!

@wozhub
Copy link

wozhub commented Jul 6, 2017

Processing: Flooding /tmp dir since 2013.

I made my own workaround. An sh script that changes the temporary files folder using an alias, and removes inactive files.

Download this gist and place it on processing root folder.

Add the following line once the processing script establishes the APPDIR, right below "log APPDIR".
. $APPDIR/tmpDirFix.sh

@geoffreyvd
Copy link

Still not fixed, I looked in my temp folder today and saw hundreds of processing folders. They are atleast 8 months old

@benfry
Copy link
Owner

benfry commented Aug 6, 2022

Resolved for Processing 4.0 with ae874f6.

There is now a temp.days (and console.temp.days) entry in preferences.txt that determines how many days the files should be kept around. Files and folders that are modified earlier than that time span will be moved to the Trash or Recycle Bin (if available) or simply deleted.

The delay in implementation is that this has to be done carefully—anything that involves deleting files is especially scary. The With the ability to move things to the Trash/Recycle Bin we're at least a little safer. But the software has millions of downloads, and so that's a lot of machines where something bad can happen.

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants