TempDir#

class pyopenms.TempDir#

Bases: object

A uniquely named temporary directory, removed when the object is destroyed unless keep_dir is set

__init__(keep_dir: bool = False) → None#
__init__(base_dir: str, keep_dir: bool = False) → None

Overloaded function.

  1. __init__(keep_dir: bool = False) -> None

Create a temporary directory below SystemSettings.getTempDirectory()

  1. __init__(base_dir: str, keep_dir: bool = False) -> None

Create a temporary directory below base_dir

Methods

__init__([keep_dir])

Overloaded function.

getPath()

Path of the temporary directory, with a trailing slash

getPath() → str#

Path of the temporary directory, with a trailing slash