Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  

Files.CopyFiles

Copies multiple files in parallel.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 10.0 Yes No Yes, macOS only No Yes
MBS( "Files.CopyFiles"; SourcePaths; DestPaths; Overwrite )   More

Parameters

Parameter Description Example value
SourcePaths The list of native paths to the file or folder to be copied. "/Users/John/Desktop/test.txt"
DestPaths The list of native paths to the destination folder or file. "/Users/John/Desktop/Backup/"
Overwrite Mac only: Whether to allow overwriting existing files. Default is off. Pass 1 to enable and 0 to disable.
(ignored on other platforms)
1

Result

Returns OK or error.

Description

Copies multiple files in parallel.
Please avoid this for spinning hard disk as it may be slower to copy in parallel compared to serial.

Examples

Copy files:

MBS("Files.CopyFiles";
"/Users/cs/Downloads/Filme/testE04.mp4¶/Users/cs/Downloads/Filme/testE02.mp4¶/Users/cs/Downloads/Filme/testE03.mp4¶/Users/cs/Downloads/Filme/testE01.mp4";
"/Users/cs/Desktop/testE04.mp4¶/Users/cs/Desktop/testE02.mp4¶/Users/cs/Desktop/testE03.mp4¶/Users/cs/Desktop/testE01.mp4"; 1)

See also

Blog Entries

Release notes

Created 14th December 2019, last changed 14th December 2019


Files.CopyFile   -   Files.CreateAlias

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos