Package duplicity :: Module tempdir
[hide private]
[frames] | no frames]

Module tempdir

source code

Provides temporary file handling cenetered around a single top-level securely created temporary directory.

The public interface of this module is thread-safe.

Classes [hide private]
  TemporaryDirectory
A temporary directory.
Functions [hide private]
 
default()
Obtain the global default instance of TemporaryDirectory, creating it first if necessary.
source code
Variables [hide private]
  _defaultLock = threading.Lock()
  _defaultInstance = None
hash(x)
  __package__ = 'duplicity'
Function Details [hide private]

default()

source code 

Obtain the global default instance of TemporaryDirectory, creating it first if necessary. Failures are propagated to caller. Most callers are expected to use this function rather than instantiating TemporaryDirectory directly, unless they explicitly desdire to have their "own" directory for some reason.

This function is thread-safe.