Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


Imports the files to SFS file.

function ImportFiles(SourcePath: string; DestPath: string = ''; Attr: Integer = faAnyFile; bRecursive: Boolean = True; OverwriteMode: TSFSOverwriteMode = omPrompt; EncryptFiles: Boolean = False): Integer;

ImportFiles adds files from SourcePath to DestPath in SFS file.
The return value is a number of imported files.

The SourcePath parameter may be a name of the folder or file to import (wildcards '*' and '?' are allowed).

The DestPath is a path within SFS file to import to. By default all the files are imported into CurrentDir


The Attr parameter specifies the special files to include in addition to all normal files. Choose from these file attribute constants when specifying the Attr parameter:

Constant   Value      Description

faReadOnly   $00000001   Read-only files
faHidden   $00000002   Hidden files
faSysFile   $00000004   System files
faVolumeID   $00000008   Volume ID files
faDirectory   $00000010   Directory files
faArchive   $00000020   Archive files
faAnyFile   $0000003F   Any file

Attributes can be combined by adding their constants or values. For example, to import read-only and hidden files in addition to normal files, pass (faReadOnly + faHidden) as the Attr parameter.

The bRecursive parameter specifies whether subdirectories of the source path are imported. All subdirectories of the source path are imported by default.

The OverwriteMode specifies the mode of overwriting existing files with the same name as imported files. Existing files can be overwritten always, never or by prompt.

The EncryptFiles parameter specifies whether the imported files will be encrypted. The password for each imported file can be assigned in OnPassword event.

© 2000-2004 AidAim Software LLC Single File System: