Recursively writes the entire contents of a file wrapper to a given file-system URL.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
URL of the file-system node to which the file wrapper’s contents are written.
Option flags for writing to the node located at
Filefor possible values.
Wrapper .Writing Options
The location of a previous revision of the contents being written. The default implementation of this method attempts to avoid unnecessary I/O by writing hard links to regular files instead of actually writing out their contents when the contents have not changed. The child file wrappers must return accurate values when its
filenameproperty is accessed for this to work. Use the
NSFilewriting option to increase the likelihood of that.
Wrapper Writing With Name Updating
nilfor this parameter if there is no earlier version of the contents or if you want to ensure that all the contents are written to files.
If an error occurs, upon return contains an
NSErrorobject that describes the problem. Pass
NULLif you do not want error information.
true when the write operation is successful. If not successful, returns
false after setting
out to an
NSError object that describes the reason why the file wrapper’s contents could not be written.