Skip to content

Leon uses current directory for temporary files #7

@KirillKryukov

Description

@KirillKryukov

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:

  1. It's completely unexpected by the user.
  2. The name may clash with other files already stored there.
  3. Current directory might have insufficient space.
  4. The process may have no write access to current directory.
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions