Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSFileManagerMBS class.

NSFileManagerMBS.currentDirectory as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the path of the program's current directory.
Example
dim m as new NSFileManagerMBS
dim f as FolderItem = SpecialFolder.Applications
if m.changeCurrentDirectory(f) then
MsgBox m.currentDirectory.NativePath
end if

Returns the path of the program's current directory. If the program's current working directory isn't accessible, returns nil.

The string returned by this method is initialized to the current working directory; you can change the working directory by invoking changeCurrentDirectoryPath.

Relative pathnames refer implicitly to the current directory. For example, if the current directory is /tmp, and the relative pathname reports/info.txt is specified, the resulting full pathname is /tmp/reports/info.txt.
(Read only property)

NSFileManagerMBS.currentDirectoryPath as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCocoa Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the path of the program's current directory as string.
Example
dim m as new NSFileManagerMBS
MsgBox m.currentDirectoryPath

Returns the path of the program's current directory. If the program's current working directory isn't accessible, returns "".

The string returned by this method is initialized to the current working directory; you can change the working directory by invoking changeCurrentDirectoryPath.

Relative pathnames refer implicitly to the current directory. For example, if the current directory is /tmp, and the relative pathname reports/info.txt is specified, the resulting full pathname is /tmp/reports/info.txt.
(Read only property)

NSFileManagerMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read and Write property)

NSFileManagerMBS.homeDirectoryForCurrentUser as FolderITem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the home directory for the current user.

(Read only property)

NSFileManagerMBS.temporaryDirectory as FolderITem

Type Topic Plugin Version macOS Windows Linux iOS Targets
property iCloud MBS MacCocoa Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the temporary directory for the current user.

(Read only property)

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


The biggest plugin in space...