win32file.DuplicateEncryptionInfoFile
DuplicateEncryptionInfoFile(SrcFileName, DstFileName, CreationDisposition, Attributes, SecurityAttributes)
Duplicates EFS encryption from one file to another
Parameters
SrcFileName : string
Encrypted file to read EFS metadata fromDstFileName : string
File to be encrypted using EFS data from source fileCreationDisposition : int
Specifies whether an existing file should be overwritten (CREATE_NEW or CREATE_ALWAYS)Attributes : int
File attributesSecurityAttributes=None : PySECURITY_ATTRIBUTES
Specifies security for destination file
Comments
Requires Windows XP or later
Accepts keyword arguments.
Win32 API References
Search for DuplicateEncryptionInfoFile at msdn, google or google groups.