---
title: "fileSystemAttributes(atPath:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/filemanager/filesystemattributes(atpath:)"
---

# fileSystemAttributes(atPath:)

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

## Declaration

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

## Parameters

- `path`: Any pathname within the mounted file system.

## Return Value

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

Discussion Because this method does not return error information, it has been deprecated as of OS X v10.5. Use attributesOfFileSystem(forPath:) instead.

## See Also

### Related Documentation

- [attributesOfItem(atPath:)](foundation/filemanager/attributesofitem(atpath:).md)
- [attributesOfFileSystem(forPath:)](foundation/filemanager/attributesoffilesystem(forpath:).md)
- [setAttributes(_:ofItemAtPath:)](foundation/filemanager/setattributes(_:ofitematpath:).md)

### Deprecated Methods

- [changeFileAttributes(_:atPath:)](foundation/filemanager/changefileattributes(_:atpath:).md)
- [fileAttributes(atPath:traverseLink:)](foundation/filemanager/fileattributes(atpath:traverselink:).md)
- [directoryContents(atPath:)](foundation/filemanager/directorycontents(atpath:).md)
- [createDirectory(atPath:attributes:)](foundation/filemanager/createdirectory(atpath:attributes:).md)
- [createSymbolicLink(atPath:pathContent:)](foundation/filemanager/createsymboliclink(atpath:pathcontent:).md)
- [pathContentOfSymbolicLink(atPath:)](foundation/filemanager/pathcontentofsymboliclink(atpath:).md)
- [fileManager(_:shouldProceedAfterError:)](objectivec/nsobject-swift.class/filemanager(_:shouldproceedaftererror:).md)
- [fileManager(_:willProcessPath:)](objectivec/nsobject-swift.class/filemanager(_:willprocesspath:).md)
- [replaceItemAtURL(originalItemURL:withItemAtURL:backupItemName:options:)](foundation/filemanager/replaceitematurl(originalitemurl:withitematurl:backupitemname:options:).md)
