Constants
All constants are defined in the cbfssync package.
The item is read-only.
The item is hidden.
The item is a system file or folder.
Indicates that the item is pinned and that the item's data are always available in the system.
This value is not used on macOS.
Indicates that the item is unpinned and that locally cached data for this item are removed when the last handle to the file is closed.
This value is not used on macOS.
Indicates that the item is downloaded.
Creation time has been changed.
Modification (last write) time has been changed.
Last access time has been changed.
File attributes or security flags have been updated.
Files: content has been updated.
Not used for folders.
A file or folder was restored from Trash (macOS only).
An item was moved to Recycle Bin/Trash rather than deleted.
Operation will be completed later.
Class is not active.
Class is active.
Invalid parameter.
Invalid handle.
Operation denied.
Class initialization failed.
The Install method must be called before performing this operation.
No local data are associated with the current task.
Reading of data failed due to the error reported by the operating system.
Too many items returned during enumeration.
Requested file or folder information was not provided.
Requested file or folder was not found.
File already exists.
Invalid item name returned during enumeration.
Invalid item Id returned during enumeration.
Invalid item attributes returned during enumeration.
Invalid item property value returned during enumeration.
Operation failed.
Operation canceled.
Operating system API error.
The application has no access to the directory where macOS keeps the folder being synchronized (~/Library/CloudStorage).
File Attributes
CBFSSYNC_ATTR_READONLY
Value: 0x00000002
Note: This attribute is not used by CBFS Sync, but it can be set and retrieved.
CBFSSYNC_ATTR_HIDDEN
Value: 0x00000004
Note: This attribute is not used by CBFS Sync, but it can be set and retrieved.
CBFSSYNC_ATTR_SYSTEM
Value: 0x00000008
Note: This attribute is not used by CBFS Sync, but it can be set and retrieved.
CBFSSYNC_ATTR_PINNED
Value: 0x00100000
CBFSSYNC_ATTR_UNPINNED
Value: 0x00200000
File Status Flags
CBFSSYNC_STATUS_DOWNLOADED
Value: 0x00000001
Indicators of file properties update
CBFSSYNC_ITEM_CTIME
Value: 0x0002
CBFSSYNC_ITEM_MTIME
Value: 0x0004
CBFSSYNC_ITEM_ATIME
Value: 0x0008
CBFSSYNC_ITEM_ATTRIBUTES
Value: 0x0020
CBFSSYNC_ITEM_CONTENT
Value: 0x0040
CBFSSYNC_ITEM_RESTORED_FROM_TRASH
Value: 0x0080
DeleteItem event flags
CBFSSYNC_DELETE_TO_BIN
Value: 0x00000001
Result Codes
CBFSSYNC_PENDING
Value: 0x21000001
CBFSSYNC_ERR_SYNC_NOT_ACTIVE
Value: 0x21000002
CBFSSYNC_ERR_SYNC_IS_ACTIVE
Value: 0x21000003
CBFSSYNC_ERR_INVALID_PARAMETER
Value: 0x21000004
CBFSSYNC_ERR_INVALID_HANDLE
Value: 0x21000005
CBFSSYNC_ERR_OPERATION_DENIED
Value: 0x21000006
CBFSSYNC_ERR_INITIALIZATION_FAILED
Value: 0x21000007
CBFSSYNC_ERR_NOT_INSTALLED
Value: 0x21000008
CBFSSYNC_ERR_NO_DATA
Value: 0x21000009
CBFSSYNC_ERR_DATA_READ_FAILED
Value: 0x2100000A
CBFSSYNC_ERR_TOO_MANY_ITEMS
Value: 0x21000010
CBFSSYNC_ERR_ITEM_INFO_NOT_PROVIDED
Value: 0x21000011
CBFSSYNC_ERR_ITEM_NOT_FOUND
Value: 0x21000012
CBFSSYNC_ERR_FILE_ALREADY_EXISTS
Value: 0x21000013
CBFSSYNC_ERR_INVALID_ITEM_NAME
Value: 0x21000014
CBFSSYNC_ERR_INVALID_ITEM_ID
Value: 0x21000015
CBFSSYNC_ERR_INVALID_ATTRIBUTES
Value: 0x21000016
CBFSSYNC_ERR_INVALID_ITEM_PROPERTY
Value: 0x21000017
CBFSSYNC_ERR_OPERATION_ERROR
Value: 0x21000030
CBFSSYNC_ERR_OPERATION_CANCELED
Value: 0x21000031
CBFSSYNC_ERR_OS_ERROR
Value: 0x21000041
CBFSSYNC_ERR_NO_ACCESS_TO_MAC_ROOT
Value: 0x21000050