Instance Method

needsToBeUpdatedFromPath:

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

Declaration

- (BOOL)needsToBeUpdatedFromPath:(NSString *)path;

Parameters

node

file-system node with which to compare the file wrapper.

Return Value

NO when the file wrapper needs to be updated to match node, NO otherwise.

Discussion

This table describes which attributes of the file wrapper and node are compared to determine whether the file wrapper needs to be updated:

File-wrapper type

Comparison determinants

Regular file

Modification date and access permissions.

Directory

Member hierarchy (recursive).

Symbolic link

Destination pathname.

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 matchesContentsOfURL:.

See Also

Updating File Wrappers

- matchesContentsOfURL:

Indicates whether the contents of a file wrapper matches a directory, regular file, or symbolic link on disk.

- updateFromPath:

Updates the file wrapper to match a given file-system node.

Deprecated
- readFromURL:options:error:

Recursively rereads the entire contents of a file wrapper from the specified location on disk.