Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSFileManagerMBS class.

NSFileManagerMBS.NSFileAppendOnly as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates whether the file is read-only.
The corresponding value is a number containing a Boolean value.
Available in Mac OS X v10.2 and later.

NSFileManagerMBS.NSFileBusy as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates whether the file is busy.
The corresponding value is a number containing a Boolean value.
Available in Mac OS X v10.4 and later.

NSFileManagerMBS.NSFileCreationDate as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's creation date.
The corresponding value is a date.
Available in Mac OS X v10.2 and later.

NSFileManagerMBS.NSFileDeviceIdentifier as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the identifier for the device on which the file resides.
The corresponding value is a number containing an Int32.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileExtensionHidden as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates whether the file's extension is hidden.
The corresponding value is a number containing a Boolean value.
Available in Mac OS X v10.1 and later.

NSFileManagerMBS.NSFileGroupOwnerAccountID as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.
Example
Var file As FolderItem = SpecialFolder.Desktop.Child("test.rtf")
Var fileManager As New NSFileManagerMBS

Var error as NSErrorMBS
Var Values As Dictionary = fileManager.attributesOfItemAtPath(file, error)
Var Permissions As Integer = Values.Value(fileManager.NSFilePosixPermissions)

MsgBox "Group: "+_
values.Value(fileManager.NSFileGroupOwnerAccountID)+_
" "+_
values.Value(fileManager.NSFileGroupOwnerAccountName)

The key in a file attribute dictionary whose value indicates the file's group ID.
The corresponding value is a number containing an Int32.
Available in Mac OS X v10.2 and later.

NSFileManagerMBS.NSFileGroupOwnerAccountName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.
Example
Var file As FolderItem = SpecialFolder.Desktop.Child("test.rtf")
Var fileManager As New NSFileManagerMBS

Var error as NSErrorMBS
Var Values As Dictionary = fileManager.attributesOfItemAtPath(file, error)
Var Permissions As Integer = Values.Value(fileManager.NSFilePosixPermissions)

MsgBox "Group: "+_
values.Value(fileManager.NSFileGroupOwnerAccountID)+_
" "+_
values.Value(fileManager.NSFileGroupOwnerAccountName)

The key in a file attribute dictionary whose value indicates the group name of the file's owner.
The corresponding value is a string.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileHFSCreatorCode as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's HFS creator code.
The corresponding value is a number containing an Int32. See "HFS File Types" for possible values.
Available in Mac OS X v10.1 and later.

NSFileManagerMBS.NSFileHFSTypeCode as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's HFS type code.
The corresponding value is a number containing an Int32. See "HFS File Types" for possible values.
Available in Mac OS X v10.1 and later.

NSFileManagerMBS.NSFileImmutable as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.
Example
Var n As New NSFileManagerMBS
Var e as NSErrorMBS
Var d As Dictionary = n.attributesOfItemAtPath("/Users/cs/Desktop/test.rtf", e)
Var locked as Boolean = d.Lookup(n.NSFileImmutable, false)

Break // inspect in debugger

The key in a file attribute dictionary whose value indicates whether the file is mutable.
The corresponding value is a number containing a Boolean value.
Available in Mac OS X v10.2 and later.

NSFileManagerMBS.NSFileManagerUnmountDissentingProcessIdentifierErrorKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The key for the error dictionary containing process ID of the process blocking the unmount.

NSFileManagerMBS.NSFileModificationDate as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's last modified date.
The corresponding value is a date.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileOwnerAccountID as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.
Example
Var file As FolderItem = SpecialFolder.Desktop.Child("test.rtf")
Var fileManager As New NSFileManagerMBS

Var error as NSErrorMBS
Var Values As Dictionary = fileManager.attributesOfItemAtPath(file, error)
Var Permissions As Integer = Values.Value(fileManager.NSFilePosixPermissions)

MsgBox "Owner: "+_
values.Value(fileManager.NSFileOwnerAccountID)+_
" "+_
values.Value(fileManager.NSFileOwnerAccountName)

The key in a file attribute dictionary whose value indicates the file's owner's account ID.
The corresponding value is a number containing an Int32.
Available in Mac OS X v10.2 and later.

NSFileManagerMBS.NSFileOwnerAccountName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.
Example
Var file As FolderItem = SpecialFolder.Desktop.Child("test.rtf")
Var fileManager As New NSFileManagerMBS

Var error as NSErrorMBS
Var Values As Dictionary = fileManager.attributesOfItemAtPath(file, error)
Var Permissions As Integer = Values.Value(fileManager.NSFilePosixPermissions)

'MsgBox "POSIX Permissions: "+Oct(Permissions)
MsgBox "Owner: "+_
values.Value(fileManager.NSFileOwnerAccountID)+_
" "+_
values.Value(fileManager.NSFileOwnerAccountName)

The key in a file attribute dictionary whose value indicates the name of the file's owner.
The corresponding value is a string.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFilePosixPermissions as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.
Example
Var file As FolderItem = SpecialFolder.Desktop.Child("test.rtf")
Var fileManager As New NSFileManagerMBS

Var error as NSErrorMBS
Var Values As Dictionary = fileManager.attributesOfItemAtPath(file, error)
Var Permissions As Integer = Values.Value(fileManager.NSFilePosixPermissions)

MsgBox "POSIX Permissions: "+oct(Permissions)

The key in a file attribute dictionary whose value indicates the file's Posix permissions.
The corresponding value is a number.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileReferenceCount as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's reference count.
The corresponding value is a number containing an Int32.
The number specifies the number of hard links to a file.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileSize as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's size in bytes.
The corresponding value is a number containing an Int64.
Important If the file has a resource fork, the returned value does not include the size of the resource fork.

NSFileManagerMBS.NSFileSystemFileNumber as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's filesystem file number.
The corresponding value is a number containing an Int32. The value corresponds to the value of st_ino, as returned by stat(2).
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileSystemFreeNodes as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access the file attribute values contained in the dictionary object returned from the attributesOfFileSystemForPath function.

The key in a file system attribute dictionary dictionary whose value indicates the number of free nodes in the file system.
The corresponding value is a number that specifies the number of free nodes in the file system.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileSystemFreeSize as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access the file attribute values contained in the dictionary object returned from the attributesOfFileSystemForPath function.

The key in a file system attribute dictionary whose value indicates the amount of free space on the file system.
The corresponding value is a number that specifies the amount of free space on the file system in bytes. The value is determined by statfs().
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileSystemNodes as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access the file attribute values contained in the dictionary object returned from the attributesOfFileSystemForPath function.

The key in a file system attribute dictionary whose value indicates the number of nodes in the file system.
The corresponding value is a number that specifies the number of nodes in the file system.
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileSystemNumber as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access the file attribute values contained in the dictionary object returned from the attributesOfFileSystemForPath function.

The key in a file system attribute dictionary dictionary whose value indicates the filesystem number of the file system.
The corresponding value is a number that specifies the filesystem number of the file system. The value corresponds to the value of st_dev, as returned by stat(2).
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileSystemSize as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access the file attribute values contained in the dictionary object returned from the attributesOfFileSystemForPath function.

The key in a file system attribute dictionary whose value indicates the size of the file system.
The corresponding value is a number that specifies the size of the file system in bytes. The value is determined by statfs().
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys to access file attribute values contained in dictionary used by setAttributes, attributesOfItemAtPath, createDirectory, and createFile.

The key in a file attribute dictionary whose value indicates the file's type.
The corresponding value is a string (see NSFileType* shared methods for possible values).
Available in Mac OS X v10.0 and later.

NSFileManagerMBS.NSFileTypeBlockSpecial as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the possible NSFileType values.
Example
// check first hard disc
Var e as NSErrorMBS
Var n as new NSFileManagerMBS
Var d as Dictionary = n.attributesOfItemAtPath("/dev/disk0", e)
MsgBox d.Value(n.NSFileType)

Block special file (e.g. hard disk)

NSFileManagerMBS.NSFileTypeCharacterSpecial as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the possible NSFileType values.

Character special file

NSFileManagerMBS.NSFileTypeDirectory as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the possible NSFileType values.
Example
Var e as NSErrorMBS
Var n as new NSFileManagerMBS
Var d as Dictionary = n.attributesOfItemAtPath("/System", e)
MsgBox d.Value(n.NSFileType)

Directory

NSFileManagerMBS.NSFileTypeRegular as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the possible NSFileType values.

Regular file

NSFileManagerMBS.NSFileTypeSocket as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the possible NSFileType values.

Socket (a socket visible in file system as a file)

NSFileManagerMBS.NSFileTypeSymbolicLink as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the possible NSFileType values.

Symbolic link

NSFileManagerMBS.NSFileTypeUnknown as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the possible NSFileType values.

Unknown

NSFileManagerMBS.NSUbiquityIdentityDidChangeNotification as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method iCloud MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Sent after the iCloud (“ubiquity”) identity has changed.

The system generates this notification when the user logs into or out of an iCloud account or enables or disables the syncing of documents and data. This notification is your cue to update caches and any interface elements displaying iCloud–related content. For example, hide all references to iCloud files when the user logs out of iCloud.
When your app receives this notification, get the new token from the NSURLRelationship property. The value of that token is nil if the user disabled iCloud or logged out. There is no userInfo dictionary.

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


The biggest plugin in space...