Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSURLMBS class.
NSURLMBS.fileURLWithFileSystemRepresentation(path as string, isDirectory as boolean, relativeToURL as NSURLMBS) as NSURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
File system representation is a string with canonical UTF-8 encoding.
NSURLMBS.fileURLWithPath(path as string) as NSURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Better to use fileURLWithPath with directory parameter if you know if the path is a directory vs non-directory, as it saves an i/o.
See also:
NSURLMBS.fileURLWithPath(path as string, isDirectory as boolean) as NSURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
NSURLMBS.fileURLWithPathComponents(components() as string) as NSURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSURLMBS.mountedVolumeURLs(SkipHidden as boolean = true) as NSURLMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
if SkipHidden is true, hidden volumes are skipped.
Returns nil in case of error.
Some examples using this method:
NSURLMBS.NSThumbnail1024x1024SizeKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A 1024 x 1024 pixel thumbnail as an NSImage on OS X.
Available in OS X v10.10 and later.
NSURLMBS.NSURLAddedToDirectoryDateKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The time at which the resource’s was created or renamed into or within its parent directory, returned as an date. Inconsistent behavior may be observed when this attribute is requested on hard-linked items. This property is not supported by all volumes. (read-only)
Available in OS X v10.10.
NSURLMBS.NSURLAttributeModificationDateKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The time at which the resource’s attributes were most recently modified, returned as an NSDate object if the volume supports attribute modification dates, or nil if attribute modification dates are unsupported (read-write).
Available in OS X v10.6 and later.
NSURLMBS.NSURLContentAccessDateKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The time at which the resource was most recently accessed, returned as a date object if the volume supports access dates, or nil if access dates are unsupported (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLContentModificationDateKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The time at which the resource was most recently modified, returned as a date object if the volume supports modification dates, or nil if modification dates are unsupported (read-write).
Available in OS X v10.6 and later.
NSURLMBS.NSURLCreationDateKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s creation date, returned as an NSDate object if the volume supports creation dates, or nil if creation dates are unsupported (read-write).
Available in OS X v10.6 and later.
NSURLMBS.NSURLCustomIconKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The icon stored with the resource, returned as an NSImage object, or nil if the resource has no custom icon.
Available in OS X v10.6 and later.
NSURLMBS.NSURLDocumentIdentifierKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The document identifier returned as a number (read-only).
The document identifier is a value assigned by the kernel to a file or directory. This value is used to identify the document regardless of where it is moved on a volume. The identifier persists across system restarts. It is not transferred when the file is copied, but it survives "safe save" operations. For example, it remains on the path to which it was assigned, even after calling the replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: method. Document identifiers are only unique within a single volume. This property is not supported by all volumes.
Available in OS X v10.10 and iOS 8.0.
NSURLMBS.NSURLEffectiveIconKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s normal icon, returned as an NSImage object (read-only).
Available in OS X v10.6 and later.
Some examples using this method:
NSURLMBS.NSURLFileAllocatedSizeKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for the total size allocated on disk for the file, returned as an NSNumber object (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLFileResourceIdentifierKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s unique identifier, returned as an id (read-only).
This identifier can be used to determine equality between file system resources with the isEqual: method. Two resources are equal if they have the same file-system path or if their paths link to the same inode on the same file system.
The value of this identifier is not persistent across system restarts.
Available in OS X v10.7 and later.
If used with getResourceValue will give a MemoryBlock.
NSURLMBS.NSURLFileResourceTypeBlockSpecial as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource is a block special file.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeCharacterSpecial as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource is a character special file.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeDirectory as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource is a directory.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s object type, returned as an NSString object. See File Resource Types for possible values.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeNamedPipe as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource is a named pipe.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeRegular as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource is a regular file.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeSocket as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource is a socket.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeSymbolicLink as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource is a symbolic link.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileResourceTypeUnknown as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s type is unknown.
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileScheme as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Identifies a URL that points to a file on a mounted volume.
NSURLMBS.NSURLFileSecurityKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s security information, returned as an NSFileSecurity object (read-write).
Available in OS X v10.7 and later.
NSURLMBS.NSURLFileSizeKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for the file’s size in bytes, returned as an NSNumber object (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLGenerationIdentifierKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An opaque generation identifier, returned as an id (read-only)
The generation identifier can be compared using isEqual to determine if the data in a document has been modified. For URLs which refer to the same file inode, the generation identifier changes when the data in the file's data fork is changed. Changes to extended attributes or other file system metadata do not change the identifier. For URLs which refer to the same directory inode, the generation identifier changes when direct children of that directory are added, removed or renamed. Changes to the data of the direct children of that directory does not change the generation identifier. The identifier persists across system restarts. It is tied to a specific document on a specific volume and is not transferred when the document is copied to another volume. This property is not supported by all volumes.
Available in OS X v10.10 and iOS 8.0.
NSURLMBS.NSURLHasHiddenExtensionKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource’s extension is normally removed from its localized name, returned as a Boolean (read-write).
NSURLMBS.NSURLIsAliasFileKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the file is an alias, returned as a Boolean NSNumber object (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsDirectoryKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource is a directory, returned as a Boolean- (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsExcludedFromBackupKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource is excluded from all backups of app data, returned as a Boolean NSNumber object (read-write).
You can use this property to exclude cache and other app support files which are not needed in a backup. Some operations commonly made to user documents cause this property to be reset to false; consequently, do not use this property on user documents.
Available in OS X v10.8 and later.
NSURLMBS.NSURLIsExecutableKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the current process (as determined by the EUID) can execute the resource (if it is a file) or search the resource (if it is a directory), returned as a Boolean (read-only).
Available in OS X v10.7 and later.
NSURLMBS.NSURLIsHiddenKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource is normally not displayed to users, returned as a Boolean NSNumber object (read-write).
If the resource is hidden because its name begins with a period, setting this value has no effect.
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsMountTriggerKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the URL is a file system trigger directory, returned as a Boolean NSNumber object (read-only). Traversing or opening a file system trigger directory causes an attempt to mount a file system on the directory.
Available in OS X v10.7 and later.
NSURLMBS.NSURLIsPackageKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource is a file package, returned as a Boolean NSNumber object (read-write in OS X v10.8 and later, read-only in previous versions). A true value means that the resource is a file package.
If you attempt to set or clear this key’s value on a file instead of a directory, the system ignores your attempt. If the directory is defined as a package by way of its filename extension or other reason apart from this key, setting this key’s value to false has no effect.
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsReadableKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the current process (as determined by the EUID) can read the resource, returned as a Boolean (read-only).
Available in OS X v10.7 and later.
NSURLMBS.NSURLIsRegularFileKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource is a regular file, as opposed to a directory or a symbolic link. Returned as a Boolean NSNumber object (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsSymbolicLinkKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource is a symbolic link, returned as a Boolean NSNumber object (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsSystemImmutableKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource's system immutable bit is set, returned as a Boolean NSNumber object (read-write).
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsUbiquitousItemKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A boolean that contains true if this item is in iCloud storage, false if it is a local item (read-only).
Available in OS X v10.7 and later.
NSURLMBS.NSURLIsUserImmutableKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource's user immutable bit is set, returned as a Boolean NSNumber object (read-write).
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsVolumeKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the resource is the root directory of a volume, returned as a Boolean NSNumber object (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLIsWritableKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Key for determining whether the current process (as determined by the EUID) can write to the resource, returned as a Boolean NSNumber object (read-only).
Available in OS X v10.7 and later.
NSURLMBS.NSURLKeysOfUnsetValuesKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSURLMBS.NSURLLabelColorKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s label color, returned as an NSColor object, or nil if the resource has no label color (read-only).
Available in OS X v10.6 and later.
NSURLMBS.NSURLLabelNumberKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The resource’s label number, returned as an NSNumber object (read-write).
Available in OS X v10.6 and later.
NSURLMBS.NSURLLinkCountKey as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa Networking | MBS MacBase Plugin | 15.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The number of hard links to the resource, returned as an NSNumber object (read-only).
Available in OS X v10.6 and later.
The items on this page are in the following plugins: MBS MacBase Plugin.