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 NSFileManagerMBS class.
NSFileManagerMBS.stringByDeletingPathExtension(path as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 16.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A new string made by deleting the extension (if any, and only the last) from the receiver. Strips any trailing path separator before checking for an extension. If the receiver represents the root path, it is returned unaltered.
The following table illustrates the effect of this method on a variety of different paths:
Receiver’s String Value | Resulting String |
“/tmp/scratch.tiff” | “/tmp/scratch” |
“/tmp/” | “/tmp” |
“scratch.bundle/” | “scratch” |
“scratch..tiff” | “scratch.” |
“.tiff” | “.tiff” |
“/” | “/” |
NSFileManagerMBS.stringByExpandingTildeInPath(path as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 16.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A new string made by expanding the initial component of the receiver, if it begins with “~” or “~user”, to its full path value. Returns a new string matching the receiver if the receiver’s initial component can’t be expanded.
Note that this method only works with file paths (not, for example, string representations of URLs).
NSFileManagerMBS.stringByResolvingSymlinksInPath(path as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 16.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A new string made by resolving all symbolic links, then removing extraneous path components. For absolute paths, all symbolic links are guaranteed to be removed. For relative paths, symbolic links that can’t be resolved are left unresolved in the returned string.
Returns self if an error occurs.
Note that this method only works with file paths (not, for example, string representations of URLs).
NSFileManagerMBS.stringByStandardizingPath(path as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 16.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A new string made by performing the following operations:
NSFileManagerMBS.URLByAppendingPathComponent(URL as string, pathComponent as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
pathComponent: The path component to add to the URL.
Returns a new URL with pathComponent appended.
If the original URL does not end with a forward slash and pathComponent does not begin with a forward slash, a forward slash is inserted between the two parts of the returned URL, unless the original URL is the empty string.
Available in Mac OS X v10.6 and later.
See also:
NSFileManagerMBS.URLByAppendingPathComponent(URL as string, pathComponent as string, isDirectory as boolean) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
pathComponent: The path component to add to the URL.
isDirectory: If true, a trailing slash is appended after pathComponent.
Returns a new URL with pathComponent appended.
If the original URL does not end with a forward slash and pathComponent does not begin with a forward slash, a forward slash is inserted between the two parts of the returned URL, unless the original URL is the empty string.
Available in Mac OS X v10.7 and later.
See also:
NSFileManagerMBS.URLByAppendingPathExtension(URL as string, pathExtension as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
pathExtension: The path extension to add to the URL.
Returns a new URL with pathExtension appended.
If the original URL ends with one or more forward slashes, these are removed from the returned URL. A period is inserted between the two parts of the new URL.
Available in Mac OS X v10.6 and later.
NSFileManagerMBS.URLByDeletingLastPathComponent(URL as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the original URL represents the root path, the returned URL is identical. Otherwise, if the original URL has only one path component, the new URL is the empty string.
Available in Mac OS X v10.6 and later.
NSFileManagerMBS.URLByDeletingPathExtension(URL as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the original URL represents the root path, the returned URL is identical. If the URL has multiple path extensions, only the last one is removed.
Available in Mac OS X v10.6 and later.
NSFileManagerMBS.URLByResolvingSymlinksInPath(URL as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
If the original URL has no symbolic links, the returned URL is identical to the original URL.
This method only works on URLs with the file: path scheme. This method will return an identical URL for all other URLs.
Available in Mac OS X v10.6 and later.
NSFileManagerMBS.URLByStandardizingPath(URL as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | iCloud | MBS MacCocoa Plugin | 12.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This method only works on URLs with the file: path scheme. This method will return an identical URL for all other URLs.
Available in Mac OS X v10.6 and later.
The items on this page are in the following plugins: MBS MacCocoa Plugin.