Platforms to show: All Mac Windows Linux Cross-Platform
Back to MacFileOperationMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS MacClassic Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Lasterror is set.
MacFileOperationMBS.CopyObject(Item as folderitem, DestinationFolder as folderitem, DestinationName as string, Options as Integer, statusChangeInterval as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS MacClassic Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
If DestinationName is provided then the new object will be renamed to DestinationName. If DestinationName is empty then the name of the source object will be used.
You will receive StatusChanged events.
Options: One or more FSFileOperation flags
statusChangeInterval: The minimum time between callbacks within a single stage of an operation in seconds.
Some examples using this method:
MacFileOperationMBS.MoveObject(Item as folderitem, DestinationFolder as folderitem, DestinationName as string, Options as Integer, statusChangeInterval as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS MacClassic Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
If DestinationName is provided then the new object will be renamed to destName. If DestinationName is empty then the name of the source object will be used.
By default a move across volumes will result in a copy and deletion of the original source. The kFSFileOperationDoNotMoveAcrossVolumes flag will cause cross volume moves to do nothing and return an error.
Options: One or more FSFileOperation flags
statusChangeInterval: The minimum time between callbacks within a single stage of an operation in seconds.
MacFileOperationMBS.MoveObjectToTrash(Item as folderitem, Options as Integer, statusChangeInterval as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS MacClassic Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If the volume the source object resides on does not support a trash folder then the operation will return an error (this is the same circumstance that triggers the delete immediately behavior in the Finder).
Options: One or more FSFileOperation flags
statusChangeInterval: The minimum time between callbacks within a single stage of an operation in seconds.
MacFileOperationMBS.Status as MacFileOperationStatusMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Files | MBS MacClassic Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Lasterror is set.
Returns nil on any error.
The items on this page are in the following plugins: MBS MacClassic Plugin.