OpenQuizz
Une application de gestion des contenus pédagogiques
StashedUninstallPathSet Class Reference

Public Member Functions

def __init__ (self)
 
def stash (self, path)
 
def commit (self)
 
def rollback (self)
 
def can_rollback (self)
 

Detailed Description

A set of file rename operations to stash files while
tentatively uninstalling them.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ can_rollback()

def can_rollback (   self)

◆ commit()

def commit (   self)
Commits the uninstall by removing stashed files.

◆ rollback()

def rollback (   self)
Undoes the uninstall by moving stashed files back.

◆ stash()

def stash (   self,
  path 
)
Stashes the directory or file and returns its new location.
Handle symlinks as files to avoid modifying the symlink targets.

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