-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Leon feels free to use current directory for storing temporary files.
For example, leon -file 'data/1.fasta' -c -kmer-size 2 will create a temporary file 1.h5 in current directory. (Normally it's deleted after compression, but is left dangling if compression crashes).
Using current directory as temporary space is problematic because:
- It's completely unexpected by the user.
- The name may clash with other files already stored there.
- Current directory might have insufficient space.
- The process may have no write access to current directory.
- When running concurrent leon tasks, these temporary files may clash with each other.
A slightly better solution would be to use output directory for temporary file storage (since we at least know that we have write access and most probably some free space there).
An even better way would be to use directory configured in TMPDIR environment variable. (Ideally with a command line option to specify another directory).
Metadata
Metadata
Assignees
Labels
No labels