Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to FolderItem class.
FolderItem.MacCopyObjectMBS(DestinationFolder as folderitem, DestinationName as string, byref Result as folderitem, Options as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS MacClassic Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The source object can be a file or directory.
self: The source object to copy.
DestinationFolder: The destination directory for the copy.
DestinationName: The name for the new object in the destination directory. Pass "" to use the source object name.
result: Upon successful completion a ref to the newly created object. If source is a directory then target will be the corresponding object in the destination directory.
options: One or more FSFileOperation flags
Requires Mac OS X 10.4.
Use this constants:
kFSFileOperationDefaultOptions | 0 | Use the default options - no overwrite, fail if any source item cannot be read, cross volume moves OK. |
kFSFileOperationOverwrite | 1 | Replace an item in the destDir that has the same name as an item being moved/copied there. |
kFSFileOperationSkipSourcePermissionErrors | 2 | Skip items that cannot be read and continue copying/moving instead of failing the operation. |
kFSFileOperationDoNotMoveAcrossVolumes | 4 | Do not perform a copy/delete to move an item across volume boundries - fail the operation instead. |
kFSFileOperationSkipPreflight | 8 | Skip the preflight for a directory move/copy. This will limit the status information that can be returned since the totals will not be calculated. |
The items on this page are in the following plugins: MBS MacClassic Plugin.