The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: procedure CopyFileTree (source, dest: string; RemoveReadOnly: boolean; FeedBack: TTreeCopyFeedback);

The procedure CopyFileTree copies the entire file tree specified by source to the destination dest. The destination path will be created if it does not exist. If the parameter RemoveReadOnly is TRUE the read-only attribute is reset in the destination copy (i.e. when copying a file from CDROM the read-only attribute is not transferred to the harddisk). The parameter FeedBack defines the feeback routine which is called every 8 kB copied and at the start and at the end of each file. If no feedback should be given, FeedBack should be set to nil. The file copy process can be aborted by calling the procedure AbortAnyFileCopying.

Hint: The parameter RemoveReadOnly is ignored in the CLX version of the function.

Last Update: 2012-Oct-20