Click or drag to resize

DirectoryExportEncryptedDirectoryRaw Method (String, Stream)

[AlphaFS] Backs up (export) encrypted directories. This is one of a group of Encrypted File System (EFS) functions that is intended to implement backup and restore functionality, while maintaining files in their encrypted state.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static void ExportEncryptedDirectoryRaw(
	string fileName,
	Stream outputStream
)

Parameters

fileName
Type: SystemString
The name of the file to be backed up.
outputStream
Type: System.IOStream
The destination stream to which the backup data will be written.
Remarks

The directory being backed up is not decrypted; it is backed up in its encrypted state.

If the caller does not have access to the key for the file, the caller needs Backup to export encrypted files. See PrivilegeEnabler.

To backup an encrypted directory call one of the ExportEncryptedDirectoryRaw Overload overloads and specify the directory to backup along with the destination stream of the backup data.

This function is intended for the backup of only encrypted directories; see BackupFileStream for backup of unencrypted directories.

Note that this method does not back up the files inside the directory, only the directory entry itself.

See Also