<!--
{
  "availability" : [
    "iOS: 2.0.0 - 2.0.0",
    "iPadOS: 2.0.0 - 2.0.0",
    "tvOS: 9.0.0 - 9.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/FileManager/fileSystemAttributes(atPath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFileManager(im)fileSystemAttributesAtPath:"
  },
  "title" : "fileSystemAttributes(atPath:)"
}
-->

# fileSystemAttributes(atPath:)

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

```
func fileSystemAttributes(atPath path: String) -> [AnyHashable : Any]?
```

## Parameters

`path`

Any pathname within the mounted file system.

## Return Value

An `NSDictionary` object that describes the attributes of the mounted file system on which `path` resides. See `File-System Attribute Keys` for a description of the keys available in the dictionary.

## Discussion

Because this method does not return error information, it has been deprecated as of OS X v10.5. Use [`attributesOfFileSystem(forPath:)`](/documentation/Foundation/FileManager/attributesOfFileSystem(forPath:)) instead.

## See Also

[`attributesOfItem(atPath:)`](/documentation/Foundation/FileManager/attributesOfItem(atPath:))

Returns the attributes of the item at a given path.

[`attributesOfFileSystem(forPath:)`](/documentation/Foundation/FileManager/attributesOfFileSystem(forPath:))

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

[`setAttributes(_:ofItemAtPath:)`](/documentation/Foundation/FileManager/setAttributes(_:ofItemAtPath:))

Sets the attributes of the specified file or directory.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)