Class: QgsProjectArchive¶
Class allowing to manage the zip/unzip actions on project file
Class Hierarchy¶
Base classes¶
Class allowing to manage the zip/unzip actions  | 
Methods
Returns the current .qgd auxiliary storage file or an empty string if there's none  | 
|
Remove the current .qgs project file from the temporary directory.  | 
|
Returns the current .qgs project file or an empty string if there's none  | 
|
Clear the current content of this archive and unzip.  | 
- class qgis.core.QgsProjectArchive[source]¶
 Bases:
QgsArchive- auxiliaryStorageFile(self) str[source]¶
 Returns the current .qgd auxiliary storage file or an empty string if there’s none
- Return type:
 str
- clearProjectFile(self) bool[source]¶
 Remove the current .qgs project file from the temporary directory.
- Return type:
 bool
- Returns:
 Trueif the file is well removed,Falseotherwise
- projectFile(self) str[source]¶
 Returns the current .qgs project file or an empty string if there’s none
- Return type:
 str
- unzip(self, zipFilename: str | None) bool[source]¶
 Clear the current content of this archive and unzip. If a project file is found in the content, then this archive may be considered as a valid one. Files are unzipped in the temporary directory.
- Parameters:
 zipFilename (Optional[str]) – The zip file to unzip
- Return type:
 bool
- Returns:
 Trueif a project file has been found,Falseotherwise