Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NetFSMountMBS.Cancel
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS MacOSX Plugin 18.3 Yes No No Yes, macOS only No
Function: Cancels asynchronous mounting.
Notes: MountURLAsyncCompleted event will not run.

Feedback, Comments & Corrections

NetFSMountMBS.MountURLAsync(URL as String, MountPath as String = "", User as String = "", Password as String = "", OpenOptions as Dictionary = nil, MountOptions as Dictionary = nil) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS MacOSX Plugin 18.3 Yes No No Yes, macOS only No
Function: MountURLAsync is the same as MountURLSync except it does the mount asynchronously.
Notes:
The MountURLAsyncCompleted event is run after the mount with an array of POSIX mountpoint paths.

You can call Cancel method to cancel a pending mount request.

Feedback, Comments & Corrections

NetFSMountMBS.MountURLSync(URL as String, MountPath as String = "", User as String = "", Password as String = "", OpenOptions as Dictionary = nil, MountOptions as Dictionary = nil, byref MountPoints() as String) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Files MBS MacOSX Plugin 18.3 Yes No No Yes, macOS only No
Function: Given a URL that refers to a file server, connect to that server and mount stuff.
Notes:
If the URL just specifies a server and you can't just mount the "root directory" of the server, the user will be prompted with a window to let them select one or more items to mount from that server, otherwise whatever item the URL specifies to mount will be mounted.
If the mountpath is provided it will be used as the mount point. If the mountpath is set to "", a default mount point will be used.
If the user and passwd are set, they will override any user name or password that may be set in the URL. These calls go through the NetAuth agent. If the URL doesn't specify a password, and one is needed, the user will be prompted with a window requesting password.
Options can be provided for the session open and the mount itself. If the mount is successful, the POSIX path to each mountpoint is returned as a string in mountpoints.
If the return value is zero the mount has succeeded.

A positive non-zero return value represents an errno value (see /usr/include/sys/errno.h). For instance, a missing mountpoint error will be returned as ENOENT (2).

A negative non-zero return value represents an OSStatus error. For instance, error -128 is userCanceledErr, returned when a mount operation is canceled by the user.

Feedback, Comments & Corrections

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





Links
MBS Xojo PDF Plugins