IPWorks ZIP 2020 Python Edition

Questions / Feedback?

recurse_subdirectories Property

Whether or not to recurse into subdirectories.

Syntax

def get_recurse_subdirectories() -> bool: ...
def set_recurse_subdirectories(value: bool) -> None: ...

recurse_subdirectories = property(get_recurse_subdirectories, set_recurse_subdirectories)

Default Value

TRUE

Remarks

This property affects the behavior of include_files and extract and the meaning of excluded_files. If this property is set to true, include_files will recurse into all subdirectories whenever it performs a search on the file system.

Be sure recurse_subdirectories is set to the appropriate value before invoking include_files, extract, or compress; changing the value of this property after method calls will not retroactively alter their effects.

Example (Creating an Archive)


ZipControl.ArchiveFile = "c:\test.zip"
ZipControl.RecurseSubdirectories = true
ZipControl.IncludeFiles("c:\foo\*")
ZipControl.Compress()

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks ZIP 2020 Python Edition - Version 20.0 [Build 7720]