Platforms to show: All Mac Windows Linux Cross-Platform

MacFileOperationMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Files MBS MacClassic Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
This class allows you to perform asynchronous file operations on Mac OS X 10.4 like copy and move.

Available in Mac OS X 10.4.

  • event StatusChanged(status as MacFileOperationStatusMBS)
  • 2 properties
  • 5 methods
    • method Cancel
    • method CopyObject(Item as folderitem, DestinationFolder as folderitem, DestinationName as string, Options as Integer, statusChangeInterval as Double)
    • method MoveObject(Item as folderitem, DestinationFolder as folderitem, DestinationName as string, Options as Integer, statusChangeInterval as Double)
    • method MoveObjectToTrash(Item as folderitem, Options as Integer, statusChangeInterval as Double)
    • method Status as MacFileOperationStatusMBS
  • 3 shared methods
    • shared method CopyObjectSync(SourceItem as folderitem, DestinationFolder as folderitem, DestinationName as string, byref Result as folderitem, Options as Integer) as Integer
    • shared method MoveObjectSync(SourceItem as folderitem, DestinationFolder as folderitem, DestinationName as string, byref Result as folderitem, Options as Integer) as Integer
    • shared method MoveObjectToTrashSync(SourceItem as folderitem, byref Result as folderitem, Options as Integer) as Integer
  • 9 constants

Constants

Constant Value Description
kFSFileOperationDefaultOptions 0 One of the file operation flags. Use the default options - no overwrite, fail if any source item cannot be read, cross volume moves OK.
kFSFileOperationDoNotMoveAcrossVolumes 4 One of the file operation flags. Do not perform a copy/delete to move an item across volume boundries - fail the operation instead.
kFSFileOperationOverwrite 1 One of the file operation flags. Replace an item in the destDir that has the same name as an item being moved/copied there.
kFSFileOperationSkipPreflight 8 One of the file operation flags. 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.
kFSFileOperationSkipSourcePermissionErrors 2 One of the file operation flags. Skip items that cannot be read and continue copying/moving instead of failing the operation.
kFSOperationStageComplete 3 One of the constants for the stage. Operation is done.
kFSOperationStagePreflighting 1 One of the constants for the stage. Operation is calulating sizes and number of items involved in the operation.
kFSOperationStageRunning 2 One of the constants for the stage. Operation is in progress.
kFSOperationStageUndefined 0 One of the constants for the stage. Operation has not started yet.

This class has no sub classes.

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS MacClassic Plugin.


MacAliasMBS   -   MacFileOperationStatusMBS


The biggest plugin in space...