saalfeldlab / paintera

GNU General Public License v2.0
100 stars 17 forks source link

separate scratch from tmp, default to tmp, allow to be configurable (use for canvases, and other temporary files that could potentially be big) #507

Closed cmhulbert closed 11 months ago

cmhulbert commented 1 year ago

Currently, temporary files (canvases, CachedCellImg, etc) are stored inside the paintera project. However, they are not valid N5 files. A project setting to specify a scratch location for tmp files should be exposed.

An initial thought is to use this library: https://github.com/dirs-dev/directories-jvm which makes reasonable default assumptions in a platform agnostic way. We could use cacheDir for this, and even projectCacheDir for things like the paintera .lock file, which should also likely be moved

cmhulbert commented 11 months ago

closed by 1783ccdc109a9ff88930dcabe3d2d479802e24fc