Instance Method

attributesOfFileSystemForPath:error:

Returns a dictionary that describes the attributes of the mounted file system on which a given path resides.

Declaration

- (NSDictionary<NSFileAttributeKey,id> *)attributesOfFileSystemForPath:(NSString *)path error:(NSError * _Nullable *)error;

Parameters

path

Any pathname within the mounted file system.

error

On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify nil for this parameter if you do not want the error information.

Return Value

An NSDictionary object that describes the attributes of the mounted file system on which path resides, or nil if an error occurs. See File-System Attribute Keys for a description of the keys available in the dictionary.

Discussion

This method does not traverse a terminal symbolic link.

See Also

Related Symbols

- attributesOfItemAtPath:error:

Returns the attributes of the item at a given path.

- setAttributes:ofItemAtPath:error:

Sets the attributes of the specified file or directory.