Package instant :: Module paths
[hide private]
[frames] | no frames]

Module paths

source code

This module contains helper functions for working with temp and cache directories.

Functions [hide private]
 
get_temp_dir()
Return a temporary directory for the duration of this process.
source code
 
delete_temp_dir()
Delete the temporary directory created by get_temp_dir().
source code
 
get_instant_dir()
Return the default instant directory, creating it if necessary.
source code
 
get_default_cache_dir()
Return the default cache directory.
source code
 
get_default_error_dir()
Return the default error directory.
source code
 
validate_cache_dir(cache_dir) source code
 
makedirs(path)
Creates a directory (tree).
source code
 
_test() source code
Variables [hide private]
  _tmp_dir = None
  __package__ = 'instant'
Function Details [hide private]

get_temp_dir()

source code 

Return a temporary directory for the duration of this process.

Multiple calls in the same process returns the same directory. Remember to call delete_temp_dir() before exiting.

makedirs(path)

source code 

Creates a directory (tree). If directory already excists it does nothing.