Files.CopyFiles
---------------

Copies multiple files in parallel.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [10.0](newinversion100.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "Files.CopyFiles"; SourcePaths; DestPaths; Overwrite ) 

**MBS**( **"Files.CopyFiles";** /\* Copies multiple files in parallel. \*/  
**$SourcePaths**; /\* The list of native paths to the file or folder to be copied.e.g. "/Users/John/Desktop/test.txt" \*/   
**$DestPaths**; /\* The list of native paths to the destination folder or file.e.g. "/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)e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| 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

- [Files.CopyFile](FilesCopyFile.md)
- [Files.MoveFile](FilesMoveFile.md)

### Release notes

- **Version 10.0**
    - Added [Files.CopyFiles](https://www.mbsplugins.eu/FilesCopyFiles.shtml) function.
    - Fixed crashes with [Files.CopyFiles](https://www.mbsplugins.eu/FilesCopyFiles.shtml) function with invalid paths.

### Blog Entries

- [MBS Plugin Advent calendar: 12 - Files](https://www.mbsplugins.de/archive/2023-12-12/MBS_Plugin_Advent_calendar_12_/monkeybreadsoftware_blog_filemaker)
- [New in the MBS FileMaker Plugin 10.0](https://www.mbsplugins.de/archive/2020-01-23/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 10.0](https://www.mbsplugins.de/archive/2020-01-14/Neues_MBS_FileMaker_Plugin_100/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.0 - More than 6000 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-01-14/MBS_FileMaker_Plugin_100_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.0pr7](https://www.mbsplugins.de/archive/2020-01-08/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.6pr3](https://www.mbsplugins.de/archive/2019-12-17/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2020, Seite 34](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)

This function checks for a license.

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

  
[Files.CopyFile](FilesCopyFile.md) - [Files.CreateAlias](FilesCreateAlias.md)

[HTML Version](FilesCopyFiles.shtml)