Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pip._internal.req.req_uninstall.StashedUninstallPathSet Class Reference

Public Member Functions

None __init__ (self)
 
str stash (self, str path)
 
None commit (self)
 
None rollback (self)
 
bool can_rollback (self)
 

Protected Member Functions

str _get_directory_stash (self, str path)
 
str _get_file_stash (self, str path)
 

Protected Attributes

 _moves
 
 _save_dirs
 

Detailed Description

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

Member Function Documentation

◆ _get_directory_stash()

str pip._internal.req.req_uninstall.StashedUninstallPathSet._get_directory_stash (   self,
str  path 
)
protected
Stashes a directory.

Directories are stashed adjacent to their original location if
possible, or else moved/copied into the user's temp dir.

◆ _get_file_stash()

str pip._internal.req.req_uninstall.StashedUninstallPathSet._get_file_stash (   self,
str  path 
)
protected
Stashes a file.

If no root has been provided, one will be created for the directory
in the user's temp directory.

◆ commit()

None pip._internal.req.req_uninstall.StashedUninstallPathSet.commit (   self)
Commits the uninstall by removing stashed files.

◆ rollback()

None pip._internal.req.req_uninstall.StashedUninstallPathSet.rollback (   self)
Undoes the uninstall by moving stashed files back.

◆ stash()

str pip._internal.req.req_uninstall.StashedUninstallPathSet.stash (   self,
str  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: