---
title: "needsToBeUpdated(fromPath:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/filewrapper/needstobeupdated(frompath:)"
---

# needsToBeUpdated(fromPath:)

Indicates whether the file wrapper needs to be updated to match a given file-system node.

## Declaration

```swift
func needsToBeUpdated(fromPath path: String) -> Bool
```

## Parameters

- `path`: File-System node with which to compare the file wrapper.

## Return Value

Return Value false when the file wrapper needs to be updated to match node, false otherwise.

## Discussion

Discussion This table describes which attributes of the file wrapper and node are compared to determine whether the file wrapper needs to be updated:  |   |   |   |  Special Considerations Beginning with OS X v10.6, the preferred method of referring to files is with a file:// URL. Therefore, this method has been deprecated in favor of matchesContents(of:).

## See Also

### Related Documentation

- [fileAttributes](foundation/filewrapper/fileattributes.md)

### Updating File Wrappers

- [matchesContents(of:)](foundation/filewrapper/matchescontents(of:).md)
- [update(fromPath:)](foundation/filewrapper/update(frompath:).md)
- [read(from:options:)](foundation/filewrapper/read(from:options:).md)
