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.MacMoveObjectToTrashMBS(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. If the volume the source object resides on does not support a trash folder then this call will return an error (this is the same circumstance that triggers the delete immediately behavior in the Finder).
self: The source object to move to the trash.
result: Upon successful completion a ref the object in the trash. 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.5.
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.