OpenQuizz
Une application de gestion des contenus pédagogiques
AdjacentTempDirectory Class Reference
Inheritance diagram for AdjacentTempDirectory:
Collaboration diagram for AdjacentTempDirectory:

Public Member Functions

def __init__ (self, original, delete=None)
 
- Public Member Functions inherited from TempDirectory
def __init__ (self, path=None, delete=_default, kind="temp", globally_managed=False)
 
def path (self)
 
def __repr__ (self)
 
def __enter__ (self)
 
def __exit__ (self, exc, value, tb)
 
def cleanup (self)
 

Data Fields

 original
 
- Data Fields inherited from TempDirectory
 delete
 
 kind
 

Static Public Attributes

 LEADING_CHARS
 

Detailed Description

Helper class that creates a temporary directory adjacent to a real one.

Attributes:
    original
        The original directory to create a temp directory for.
    path
        After calling create() or entering, contains the full
        path to the temporary directory.
    delete
        Whether the directory should be deleted when exiting
        (when used as a contextmanager)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  original,
  delete = None 
)

Field Documentation

◆ LEADING_CHARS

LEADING_CHARS
static

◆ original

original

The documentation for this class was generated from the following file: