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
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 evenprojectCacheDir
for things like the paintera.lock
file, which should also likely be moved