Instance Method

getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:

Describes the file system at fullPath.

Declaration

- (BOOL)getFileSystemInfoForPath:(NSString *)fullPath isRemovable:(BOOL *)removableFlag isWritable:(BOOL *)writableFlag isUnmountable:(BOOL *)unmountableFlag description:(NSString * _Nullable *)description type:(NSString * _Nullable *)fileSystemType;

Parameters

fullPath

The path to the file-system mount point.

removableFlag

On input, a boolean variable; on return, this variable contains YES if the file system is on removable media.

writableFlag

On input, a boolean variable; on return, this variable contains YES if the file system writable.

unmountableFlag

On input, a boolean variable; on return, this variable contains YES if the file system is unmountable.

description

On input, a pointer to a string object variable; on return, if the method was successful, this variable contains a string object that describes the file system. You should not rely on this description for program logic but can use it in message strings. Values can include “hard,” “nfs,” and “foreign."

fileSystemType

On input, a pointer to a string object variable; on return, if the method was successful, this variable contains the file-system type. Values can include “HFS,” “UFS,” or other values.

Return Value

YES if the information was successfully returned, otherwise NO.

Discussion

It is safe to call this method from any thread of your app.

See Also

Requesting Information

- getInfoForFile:application:type:

Retrieves information about the specified file.

- URLForApplicationToOpenURL:

Returns the URL to the default app that would be used to open the given URL.

- fullPathForApplication:

Returns the full path for the specified app.

- isFilePackageAtPath:

Determines whether the specified path is a file package.

frontmostApplication

Returns the frontmost app, which is the app that receives key events.

runningApplications

Returns an array of NSRunningApplication representing the running apps.

menuBarOwningApplication

Returns the app that owns the currently displayed menu bar.