/core/sdk-objc/Documentation/GMUserFileSystem/Categories/NSObject_GMUserFileSystemOperations_/CompositePage.html
HTML | 923 lines | 902 code | 21 blank | 0 comment | 0 complexity | 50f1a34483b2dc215164479e3a9a8b41 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, GPL-2.0
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
- <html>
- <head>
- <title>NSObject(GMUserFileSystemOperations) </title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="generator" content="HeaderDoc">
- <style type="text/css"><!--.keyword {background:#ffffff; color:#761550;}.template {background:#ffffff; color:#761550;}.number {background: #ffffff; color:#0000ff;}.function {background:#ffffff; color:#000000;}.string {background: #ffffff; color:#891315;}.preprocessor {background:#ffffff; color:#236e25}.comment {background:#ffffff; color:#236e25}.char {background: #ffffff; color:#0000ff;}.var {background:#ffffff; color:#000000;}.type {background:#ffffff; color:#761550;}.param {background:#ffffff; color:#000000;}a:link {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:active {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}h4 {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: tiny; font-weight: bold;}body {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: 10pt;}--></style>
- </head>
- <body bgcolor="#ffffff">
- <a name="top"></a><a name="//apple_ref/doc/class/NSObject(GMUserFileSystemOperations)" title="NSObject(GMUserFileSystemOperations) "></a><hr>
- <table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h1><a name="NSObject(GMUserFileSystemOperations)">NSObject(GMUserFileSystemOperations) </a></h1>
- </td></tr></table>
- <hr>
- <p><b>Extends Class:</b> <!-- a logicalPath="//apple_ref/occ/cl/NSObject" -->NSObject<!-- /a --><br><b>Declared In:</b> <a href="../../index.html" target="_top">GMUserFileSystem</a><br></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion --> The core set of file system operations the delegate must implement.
- Unless otherwise noted, they typically should behave like the NSFileManager
- equivalent. However, the error codes that they return should correspond to
- the BSD-equivalent call and be in the NSPOSIXErrorDomain.<br><br>
- For a read-only filesystem, you can typically pick-and-choose which methods
- to implement. For example, a minimal read-only filesystem might implement:</p>
- <ul>
- - (NSArray *)contentsOfDirectoryAtPath:(NSString *)path
- error:(NSError **)error;<br>
- - (NSDictionary *)attributesOfItemAtPath:(NSString *)path
- userData:(id)userData
- error:(NSError **)error;<br>
- - (NSData *)contentsAtPath:(NSString *)path;</ul>
- <p>
- For a writeable filesystem, the Finder can be quite picky unless the majority
- of these methods are implemented. However, you can safely skip hard-links,
- symbolic links, and extended attributes.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <br><h2>Methods</h2>
- <a name="HeaderDoc_methods"></a><dl>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsOfDirectoryAtPath:error:" target="_top">-contentsOfDirectoryAtPath:error: </a></tt></dt>
- <dd>Returns directory contents at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfItemAtPath:userData:error:" target="_top">-attributesOfItemAtPath:userData:error: </a></tt></dt>
- <dd>Returns attributes at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfFileSystemForPath:error:" target="_top">-attributesOfFileSystemForPath:error: </a></tt></dt>
- <dd>Returns file system attributes.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setAttributes:ofItemAtPath:userData:error:" target="_top">-setAttributes:ofItemAtPath:userData:error: </a></tt></dt>
- <dd>Set attributes at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsAtPath:" target="_top">-contentsAtPath: </a></tt></dt>
- <dd>Returns directory contents at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/openFileAtPath:mode:userData:error:" target="_top">-openFileAtPath:mode:userData:error: </a></tt></dt>
- <dd>Opens the file at the given path for read/write.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/releaseFileAtPath:userData:" target="_top">-releaseFileAtPath:userData: </a></tt></dt>
- <dd>Called when an opened file is closed.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/readFileAtPath:userData:buffer:size:offset:error:" target="_top">-readFileAtPath:userData:buffer:size:offset:error: </a></tt></dt>
- <dd>Reads data from the open file at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/writeFileAtPath:userData:buffer:size:offset:error:" target="_top">-writeFileAtPath:userData:buffer:size:offset:error: </a></tt></dt>
- <dd>Writes data to the open file at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/exchangeDataOfItemAtPath:withItemAtPath:error:" target="_top">-exchangeDataOfItemAtPath:withItemAtPath:error: </a></tt></dt>
- <dd>Atomically exchanges data between files.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createDirectoryAtPath:attributes:error:" target="_top">-createDirectoryAtPath:attributes:error: </a></tt></dt>
- <dd>Creates a directory at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createFileAtPath:attributes:userData:error:" target="_top">-createFileAtPath:attributes:userData:error: </a></tt></dt>
- <dd>Creates and opens a file at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/moveItemAtPath:toPath:error:" target="_top">-moveItemAtPath:toPath:error: </a></tt></dt>
- <dd>Moves or renames an item.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeDirectoryAtPath:error:" target="_top">-removeDirectoryAtPath:error: </a></tt></dt>
- <dd>Remove the directory at the given path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeItemAtPath:error:" target="_top">-removeItemAtPath:error: </a></tt></dt>
- <dd>Removes the item at the given path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/linkItemAtPath:toPath:error:" target="_top">-linkItemAtPath:toPath:error:</a></tt></dt>
- <dd>Creates a hard link.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createSymbolicLinkAtPath:withDestinationPath:error:" target="_top">-createSymbolicLinkAtPath:withDestinationPath:error:</a></tt></dt>
- <dd>Creates a symbolic link.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/destinationOfSymbolicLinkAtPath:error:" target="_top">-destinationOfSymbolicLinkAtPath:error:</a></tt></dt>
- <dd>Reads the destination of a symbolic link.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/extendedAttributesOfItemAtPath:error:" target="_top">-extendedAttributesOfItemAtPath:error: </a></tt></dt>
- <dd>Returns the names of the extended attributes at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/valueOfExtendedAttribute:ofItemAtPath:position:error:" target="_top">-valueOfExtendedAttribute:ofItemAtPath:position:error:</a></tt></dt>
- <dd>Returns the contents of the extended attribute at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setExtendedAttribute:ofItemAtPath:value:position:options:error:" target="_top">-setExtendedAttribute:ofItemAtPath:value:position:options:error:</a></tt></dt>
- <dd>Writes the contents of the extended attribute at the specified path.
- </dd>
- <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeExtendedAttribute:ofItemAtPath:error:" target="_top">-removeExtendedAttribute:ofItemAtPath:error:</a></tt></dt>
- <dd>Removes the extended attribute at the specified path.
- </dd>
- </dl>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsOfDirectoryAtPath:error:; name=NSObject(GMUserFileSystemOperations)::contentsOfDirectoryAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsOfDirectoryAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="contentsOfDirectoryAtPath:error:">contentsOfDirectoryAtPath:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Returns directory contents at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->readdir(3)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSArray //apple_ref/occ/tdef/NSArray //apple_ref/occ/tag/NSArray //apple_ref/occ/econst/NSArray //apple_ref/occ/struct/NSArray //apple_ref/occ/clconst/NSArray //apple_ref/occ/intf/NSArray" --><span class="type">NSArray</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/contentsOfDirectoryAtPath //apple_ref/occ/clm/contentsOfDirectoryAtPath //apple_ref/occ/intfcm/contentsOfDirectoryAtPath //apple_ref/occ/intfm/contentsOfDirectoryAtPath //apple_ref/occ/func/contentsOfDirectoryAtPath //apple_ref/occ/ftmplt/contentsOfDirectoryAtPath //apple_ref/occ/defn/contentsOfDirectoryAtPath //apple_ref/occ/macro/contentsOfDirectoryAtPath" --><span class="function">contentsOfDirectoryAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span>
- <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>;</pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to a directory.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->An array of NSString or nil on error.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Returns an array of NSString containing the names of files and
- sub-directories in the specified directory.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfItemAtPath:userData:error:; name=NSObject(GMUserFileSystemOperations)::attributesOfItemAtPath:userData:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfItemAtPath:userData:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="attributesOfItemAtPath:userData:error:">attributesOfItemAtPath:userData:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Returns attributes at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->stat(2), fstat(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/attributesOfItemAtPath //apple_ref/occ/clm/attributesOfItemAtPath //apple_ref/occ/intfcm/attributesOfItemAtPath //apple_ref/occ/intfm/attributesOfItemAtPath //apple_ref/occ/func/attributesOfItemAtPath //apple_ref/occ/ftmplt/attributesOfItemAtPath //apple_ref/occ/defn/attributesOfItemAtPath //apple_ref/occ/macro/attributesOfItemAtPath" --><span class="function">attributesOfItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the item.</dd>
- <dt><code>userData </code></dt>
- <dd>The userData corresponding to this open file or nil.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->A dictionary of attributes or nil on error.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Returns a dictionary of attributes at the given path. It is required to
- return at least the NSFileType attribute. You may omit the NSFileSize
- attribute if contentsAtPath: is implemented, although this is less efficient.
- The following keys are currently supported (unknown keys are ignored):</p>
- <ul>
- <li>NSFileType [Required]
- </li>
- <li>NSFileSize [Recommended]
- </li>
- <li>NSFileModificationDate
- </li>
- <li>NSFileReferenceCount
- </li>
- <li>NSFilePosixPermissions
- </li>
- <li>NSFileOwnerAccountID
- </li>
- <li>NSFileGroupOwnerAccountID
- </li>
- <li>NSFileSystemFileNumber (64-bit on 10.5+)
- </li>
- <li>NSFileCreationDate (if supports extended dates)
- </li>
- <li>kGMUserFileSystemFileBackupDateKey (if supports extended dates)
- </li>
- <li>kGMUserFileSystemFileChangeDateKey
- </li>
- <li>kGMUserFileSystemFileAccessDateKey
- </li>
- <li>kGMUserFileSystemFileFlagsKey</li>
- </ul>
- <br><p>
- If this is the fstat variant and userData was supplied in openFileAtPath: or
- createFileAtPath: then it will be passed back in this call.<br><!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfFileSystemForPath:error:; name=NSObject(GMUserFileSystemOperations)::attributesOfFileSystemForPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfFileSystemForPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="attributesOfFileSystemForPath:error:">attributesOfFileSystemForPath:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Returns file system attributes.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->statvfs(3)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/attributesOfFileSystemForPath //apple_ref/occ/clm/attributesOfFileSystemForPath //apple_ref/occ/intfcm/attributesOfFileSystemForPath //apple_ref/occ/intfm/attributesOfFileSystemForPath //apple_ref/occ/func/attributesOfFileSystemForPath //apple_ref/occ/ftmplt/attributesOfFileSystemForPath //apple_ref/occ/defn/attributesOfFileSystemForPath //apple_ref/occ/macro/attributesOfFileSystemForPath" --><span class="function">attributesOfFileSystemForPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>A path on the file system (it is safe to ignore this).</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->A dictionary of attributes for the file system.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Returns a dictionary of attributes for the file system.
- The following keys are currently supported (unknown keys are ignored):</p>
- <ul>
- <li>NSFileSystemSize
- </li>
- <li>NSFileSystemFreeSize
- </li>
- <li>NSFileSystemNodes
- </li>
- <li>NSFileSystemFreeNodes
- </li>
- <li>kGMUserFileSystemVolumeSupportsExtendedDatesKey</li>
- </ul>
- <br><!-- end discussion --><p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setAttributes:ofItemAtPath:userData:error:; name=NSObject(GMUserFileSystemOperations)::setAttributes:ofItemAtPath:userData:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setAttributes:ofItemAtPath:userData:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="setAttributes:ofItemAtPath:userData:error:">setAttributes:ofItemAtPath:userData:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Set attributes at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->truncate(2), chown(2), chmod(2), utimes(2), chflags(2),<!-- /a -->
- </dt>
- <dd></dd>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/ftruncate(2), //apple_ref/occ/tdef/ftruncate(2), //apple_ref/occ/tag/ftruncate(2), //apple_ref/occ/econst/ftruncate(2), //apple_ref/occ/struct/ftruncate(2), //apple_ref/occ/data/ftruncate(2), //apple_ref/occ/clconst/ftruncate(2), //apple_ref/occ/intf/ftruncate(2), //apple_ref/occ/instm/ftruncate(2), //apple_ref/occ/clm/ftruncate(2), //apple_ref/occ/intfcm/ftruncate(2), //apple_ref/occ/intfm/ftruncate(2), //apple_ref/occ/func/ftruncate(2), //apple_ref/occ/ftmplt/ftruncate(2), //apple_ref/occ/defn/ftruncate(2), //apple_ref/occ/macro/ftruncate(2), //apple_ref/doc/com/intfm/ftruncate(2)," -->fchown(2), fchmod(2), futimes(2), fchflags(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setAttributes //apple_ref/occ/clm/setAttributes //apple_ref/occ/intfcm/setAttributes //apple_ref/occ/intfm/setAttributes //apple_ref/occ/func/setAttributes //apple_ref/occ/ftmplt/setAttributes //apple_ref/occ/defn/setAttributes //apple_ref/occ/macro/setAttributes" --><span class="function">setAttributes</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<span class="param">attributes</span> <!-- a logicalPath="//apple_ref/occ/instm/ofItemAtPath //apple_ref/occ/clm/ofItemAtPath //apple_ref/occ/intfcm/ofItemAtPath //apple_ref/occ/intfm/ofItemAtPath //apple_ref/occ/func/ofItemAtPath //apple_ref/occ/ftmplt/ofItemAtPath //apple_ref/occ/defn/ofItemAtPath //apple_ref/occ/macro/ofItemAtPath" --><span class="function">ofItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>attributes </code></dt>
- <dd>The attributes to set.</dd>
- <dt><code>path </code></dt>
- <dd>The path to the item.</dd>
- <dt><code>userData </code></dt>
- <dd>The userData corresponding to this open file or nil.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the attributes are successfully set.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Sets the attributes for the item at the specified path. The following keys
- may be present (you must ignore unknown keys):</p>
- <ul>
- <li>NSFileSize
- </li>
- <li>NSFileOwnerAccountID
- </li>
- <li>NSFileGroupOwnerAccountID
- </li>
- <li>NSFilePosixPermissions
- </li>
- <li>NSFileModificationDate
- </li>
- <li>NSFileCreationDate (if supports extended dates)
- </li>
- <li>kGMUserFileSystemFileBackupDateKey (if supports extended dates)
- </li>
- <li>kGMUserFileSystemFileChangeDateKey
- </li>
- <li>kGMUserFileSystemFileAccessDateKey
- </li>
- <li>kGMUserFileSystemFileFlagsKey</li>
- </ul>
- <br><p>
- If this is the f-variant and userData was supplied in openFileAtPath: or
- createFileAtPath: then it will be passed back in this call.<br><!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsAtPath:; name=NSObject(GMUserFileSystemOperations)::contentsAtPath: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsAtPath:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="contentsAtPath:">contentsAtPath: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Returns directory contents at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSData //apple_ref/occ/tdef/NSData //apple_ref/occ/tag/NSData //apple_ref/occ/econst/NSData //apple_ref/occ/struct/NSData //apple_ref/occ/clconst/NSData //apple_ref/occ/intf/NSData" --><span class="type">NSData</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/contentsAtPath //apple_ref/occ/clm/contentsAtPath //apple_ref/occ/intfcm/contentsAtPath //apple_ref/occ/intfm/contentsAtPath //apple_ref/occ/func/contentsAtPath //apple_ref/occ/ftmplt/contentsAtPath //apple_ref/occ/defn/contentsAtPath //apple_ref/occ/macro/contentsAtPath" --><span class="function">contentsAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="var">path</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the file.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->The contents of the file or nil if a file does not exist at path.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Returns the full contents at the given path. Implementation of
- this delegate method is recommended only by very simple file systems that are
- not concerned with performance. If contentsAtPath is implemented then you can
- skip open/release/read.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/openFileAtPath:mode:userData:error:; name=NSObject(GMUserFileSystemOperations)::openFileAtPath:mode:userData:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/openFileAtPath:mode:userData:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="openFileAtPath:mode:userData:error:">openFileAtPath:mode:userData:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Opens the file at the given path for read/write.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->open(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/openFileAtPath //apple_ref/occ/clm/openFileAtPath //apple_ref/occ/intfcm/openFileAtPath //apple_ref/occ/intfm/openFileAtPath //apple_ref/occ/func/openFileAtPath //apple_ref/occ/ftmplt/openFileAtPath //apple_ref/occ/defn/openFileAtPath //apple_ref/occ/macro/openFileAtPath" --><span class="function">openFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/mode //apple_ref/occ/clm/mode //apple_ref/occ/intfcm/mode //apple_ref/occ/intfm/mode //apple_ref/occ/func/mode //apple_ref/occ/ftmplt/mode //apple_ref/occ/defn/mode //apple_ref/occ/macro/mode" --><span class="function">mode</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/int //apple_ref/occ/tdef/int //apple_ref/occ/tag/int //apple_ref/occ/econst/int //apple_ref/occ/struct/int //apple_ref/occ/clconst/int //apple_ref/occ/intf/int" --><span class="type">int</span><!-- /a -->)<span class="param">mode</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a --> <span class="type">*</span>)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the file.</dd>
- <dt><code>mode </code></dt>
- <dd>The open mode for the file (e.g. O_RDWR, etc.)</dd>
- <dt><code>userData </code></dt>
- <dd>Out parameter that can be filled in with arbitrary user data.
- The given userData will be retained and passed back in to delegate
- methods that are acting on this open file.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the file was opened successfully.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->This will only be called for existing files. If the file needs
- to be created then createFileAtPath: will be called instead.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/releaseFileAtPath:userData:; name=NSObject(GMUserFileSystemOperations)::releaseFileAtPath:userData: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/releaseFileAtPath:userData:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="releaseFileAtPath:userData:">releaseFileAtPath:userData: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Called when an opened file is closed.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->close(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/void //apple_ref/occ/tdef/void //apple_ref/occ/tag/void //apple_ref/occ/econst/void //apple_ref/occ/struct/void //apple_ref/occ/clconst/void //apple_ref/occ/intf/void" --><span class="type">void</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/releaseFileAtPath //apple_ref/occ/clm/releaseFileAtPath //apple_ref/occ/intfcm/releaseFileAtPath //apple_ref/occ/intfm/releaseFileAtPath //apple_ref/occ/func/releaseFileAtPath //apple_ref/occ/ftmplt/releaseFileAtPath //apple_ref/occ/defn/releaseFileAtPath //apple_ref/occ/macro/releaseFileAtPath" --><span class="function">releaseFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="var">userData</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the file.</dd>
- <dt><code>userData </code></dt>
- <dd>The userData corresponding to this open file or nil.</dd>
- </dl>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->If userData was provided in the corresponding openFileAtPath: call
- then it will be passed in userData and released after this call completes.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/readFileAtPath:userData:buffer:size:offset:error:; name=NSObject(GMUserFileSystemOperations)::readFileAtPath:userData:buffer:size:offset:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/readFileAtPath:userData:buffer:size:offset:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="readFileAtPath:userData:buffer:size:offset:error:">readFileAtPath:userData:buffer:size:offset:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Reads data from the open file at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->pread(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/int //apple_ref/occ/tdef/int //apple_ref/occ/tag/int //apple_ref/occ/econst/int //apple_ref/occ/struct/int //apple_ref/occ/clconst/int //apple_ref/occ/intf/int" --><span class="type">int</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/readFileAtPath //apple_ref/occ/clm/readFileAtPath //apple_ref/occ/intfcm/readFileAtPath //apple_ref/occ/intfm/readFileAtPath //apple_ref/occ/func/readFileAtPath //apple_ref/occ/ftmplt/readFileAtPath //apple_ref/occ/defn/readFileAtPath //apple_ref/occ/macro/readFileAtPath" --><span class="function">readFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/buffer //apple_ref/occ/clm/buffer //apple_ref/occ/intfcm/buffer //apple_ref/occ/intfm/buffer //apple_ref/occ/func/buffer //apple_ref/occ/ftmplt/buffer //apple_ref/occ/defn/buffer //apple_ref/occ/macro/buffer" --><span class="function">buffer</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/char //apple_ref/occ/tdef/char //apple_ref/occ/tag/char //apple_ref/occ/econst/char //apple_ref/occ/struct/char //apple_ref/occ/clconst/char //apple_ref/occ/intf/char" --><span class="type">char</span><!-- /a --> <span class="type">*</span>)<span class="param">buffer</span> <!-- a logicalPath="//apple_ref/occ/instm/size //apple_ref/occ/clm/size //apple_ref/occ/intfcm/size //apple_ref/occ/intfm/size //apple_ref/occ/func/size //apple_ref/occ/ftmplt/size //apple_ref/occ/defn/size //apple_ref/occ/macro/size" --><span class="function">size</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/size_t //apple_ref/occ/tdef/size_t //apple_ref/occ/tag/size_t //apple_ref/occ/econst/size_t //apple_ref/occ/struct/size_t //apple_ref/occ/clconst/size_t //apple_ref/occ/intf/size_t" --><span class="type">size_t</span><!-- /a -->)<span class="param">size</span> <!-- a logicalPath="//apple_ref/occ/instm/offset //apple_ref/occ/clm/offset //apple_ref/occ/intfcm/offset //apple_ref/occ/intfm/offset //apple_ref/occ/func/offset //apple_ref/occ/ftmplt/offset //apple_ref/occ/defn/offset //apple_ref/occ/macro/offset" --><span class="function">offset</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/off_t //apple_ref/occ/tdef/off_t //apple_ref/occ/tag/off_t //apple_ref/occ/econst/off_t //apple_ref/occ/struct/off_t //apple_ref/occ/clconst/off_t //apple_ref/occ/intf/off_t" --><span class="type">off_t</span><!-- /a -->)<span class="param">offset</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the file.</dd>
- <dt><code>userData </code></dt>
- <dd>The userData corresponding to this open file or nil.</dd>
- <dt><code>buffer </code></dt>
- <dd>Byte buffer to read data from the file into.</dd>
- <dt><code>size </code></dt>
- <dd>The size of the provided buffer.</dd>
- <dt><code>offset </code></dt>
- <dd>The offset in the file from which to read data.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->The number of bytes read or -1 on error.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Reads data from the file starting at offset into the provided
- buffer and returns the number of bytes read. If userData was provided in the
- corresponding openFileAtPath: or createFileAtPath: call then it will be
- passed in.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/writeFileAtPath:userData:buffer:size:offset:error:; name=NSObject(GMUserFileSystemOperations)::writeFileAtPath:userData:buffer:size:offset:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/writeFileAtPath:userData:buffer:size:offset:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="writeFileAtPath:userData:buffer:size:offset:error:">writeFileAtPath:userData:buffer:size:offset:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Writes data to the open file at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->pwrite(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/int //apple_ref/occ/tdef/int //apple_ref/occ/tag/int //apple_ref/occ/econst/int //apple_ref/occ/struct/int //apple_ref/occ/clconst/int //apple_ref/occ/intf/int" --><span class="type">int</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/writeFileAtPath //apple_ref/occ/clm/writeFileAtPath //apple_ref/occ/intfcm/writeFileAtPath //apple_ref/occ/intfm/writeFileAtPath //apple_ref/occ/func/writeFileAtPath //apple_ref/occ/ftmplt/writeFileAtPath //apple_ref/occ/defn/writeFileAtPath //apple_ref/occ/macro/writeFileAtPath" --><span class="function">writeFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/buffer //apple_ref/occ/clm/buffer //apple_ref/occ/intfcm/buffer //apple_ref/occ/intfm/buffer //apple_ref/occ/func/buffer //apple_ref/occ/ftmplt/buffer //apple_ref/occ/defn/buffer //apple_ref/occ/macro/buffer" --><span class="function">buffer</span><!-- /a -->:(<span class="keyword">const</span> <!-- a logicalPath="//apple_ref/occ/cl/char //apple_ref/occ/tdef/char //apple_ref/occ/tag/char //apple_ref/occ/econst/char //apple_ref/occ/struct/char //apple_ref/occ/clconst/char //apple_ref/occ/intf/char" --><span class="type">char</span><!-- /a --> <span class="type">*</span>)<span class="param">buffer</span> <!-- a logicalPath="//apple_ref/occ/instm/size //apple_ref/occ/clm/size //apple_ref/occ/intfcm/size //apple_ref/occ/intfm/size //apple_ref/occ/func/size //apple_ref/occ/ftmplt/size //apple_ref/occ/defn/size //apple_ref/occ/macro/size" --><span class="function">size</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/size_t //apple_ref/occ/tdef/size_t //apple_ref/occ/tag/size_t //apple_ref/occ/econst/size_t //apple_ref/occ/struct/size_t //apple_ref/occ/clconst/size_t //apple_ref/occ/intf/size_t" --><span class="type">size_t</span><!-- /a -->)<span class="param">size</span> <!-- a logicalPath="//apple_ref/occ/instm/offset //apple_ref/occ/clm/offset //apple_ref/occ/intfcm/offset //apple_ref/occ/intfm/offset //apple_ref/occ/func/offset //apple_ref/occ/ftmplt/offset //apple_ref/occ/defn/offset //apple_ref/occ/macro/offset" --><span class="function">offset</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/off_t //apple_ref/occ/tdef/off_t //apple_ref/occ/tag/off_t //apple_ref/occ/econst/off_t //apple_ref/occ/struct/off_t //apple_ref/occ/clconst/off_t //apple_ref/occ/intf/off_t" --><span class="type">off_t</span><!-- /a -->)<span class="param">offset</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the file.</dd>
- <dt><code>userData </code></dt>
- <dd>The userData corresponding to this open file or nil.</dd>
- <dt><code>buffer </code></dt>
- <dd>Byte buffer containing the data to write to the file.</dd>
- <dt><code>size </code></dt>
- <dd>The size of the provided buffer.</dd>
- <dt><code>offset </code></dt>
- <dd>The offset in the file to write data.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->The number of bytes written or -1 on error.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Writes data to the file starting at offset from the provided
- buffer and returns the number of bytes written. If userData was provided in
- the corresponding openFileAtPath: or createFileAtPath: call then it will be
- passed in.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/exchangeDataOfItemAtPath:withItemAtPath:error:; name=NSObject(GMUserFileSystemOperations)::exchangeDataOfItemAtPath:withItemAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/exchangeDataOfItemAtPath:withItemAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="exchangeDataOfItemAtPath:withItemAtPath:error:">exchangeDataOfItemAtPath:withItemAtPath:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Atomically exchanges data between files.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->exchangedata(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/exchangeDataOfItemAtPath //apple_ref/occ/clm/exchangeDataOfItemAtPath //apple_ref/occ/intfcm/exchangeDataOfItemAtPath //apple_ref/occ/intfm/exchangeDataOfItemAtPath //apple_ref/occ/func/exchangeDataOfItemAtPath //apple_ref/occ/ftmplt/exchangeDataOfItemAtPath //apple_ref/occ/defn/exchangeDataOfItemAtPath //apple_ref/occ/macro/exchangeDataOfItemAtPath" --><span class="function">exchangeDataOfItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path1</span> <!-- a logicalPath="//apple_ref/occ/instm/withItemAtPath //apple_ref/occ/clm/withItemAtPath //apple_ref/occ/intfcm/withItemAtPath //apple_ref/occ/intfm/withItemAtPath //apple_ref/occ/func/withItemAtPath //apple_ref/occ/ftmplt/withItemAtPath //apple_ref/occ/defn/withItemAtPath //apple_ref/occ/macro/withItemAtPath" --><span class="function">withItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path2</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path1 </code></dt>
- <dd>The path to the file.</dd>
- <dt><code>path2 </code></dt>
- <dd>The path to the other file.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if data was exchanged successfully.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Called to atomically exchange file data between path1 and path2.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createDirectoryAtPath:attributes:error:; name=NSObject(GMUserFileSystemOperations)::createDirectoryAtPath:attributes:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createDirectoryAtPath:attributes:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="createDirectoryAtPath:attributes:error:">createDirectoryAtPath:attributes:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Creates a directory at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->mkdir(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/createDirectoryAtPath //apple_ref/occ/clm/createDirectoryAtPath //apple_ref/occ/intfcm/createDirectoryAtPath //apple_ref/occ/intfm/createDirectoryAtPath //apple_ref/occ/func/createDirectoryAtPath //apple_ref/occ/ftmplt/createDirectoryAtPath //apple_ref/occ/defn/createDirectoryAtPath //apple_ref/occ/macro/createDirectoryAtPath" --><span class="function">createDirectoryAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/attributes //apple_ref/occ/clm/attributes //apple_ref/occ/intfcm/attributes //apple_ref/occ/intfm/attributes //apple_ref/occ/func/attributes //apple_ref/occ/ftmplt/attributes //apple_ref/occ/defn/attributes //apple_ref/occ/macro/attributes" --><span class="function">attributes</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<span class="param">attributes</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The directory path to create.</dd>
- <dt><code>attributes </code></dt>
- <dd>Set of attributes to apply to the newly created directory.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the directory was successfully created.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->The attributes may contain keys similar to setAttributes:.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createFileAtPath:attributes:userData:error:; name=NSObject(GMUserFileSystemOperations)::createFileAtPath:attributes:userData:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createFileAtPath:attributes:userData:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="createFileAtPath:attributes:userData:error:">createFileAtPath:attributes:userData:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Creates and opens a file at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->creat(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/createFileAtPath //apple_ref/occ/clm/createFileAtPath //apple_ref/occ/intfcm/createFileAtPath //apple_ref/occ/intfm/createFileAtPath //apple_ref/occ/func/createFileAtPath //apple_ref/occ/ftmplt/createFileAtPath //apple_ref/occ/defn/createFileAtPath //apple_ref/occ/macro/createFileAtPath" --><span class="function">createFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/attributes //apple_ref/occ/clm/attributes //apple_ref/occ/intfcm/attributes //apple_ref/occ/intfm/attributes //apple_ref/occ/func/attributes //apple_ref/occ/ftmplt/attributes //apple_ref/occ/defn/attributes //apple_ref/occ/macro/attributes" --><span class="function">attributes</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<span class="param">attributes</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a --> <span class="type">*</span>)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path of the file to create.</dd>
- <dt><code>attributes </code></dt>
- <dd>Set of attributes to apply to the newly created file.</dd>
- <dt><code>userData </code></dt>
- <dd>Out parameter that can be filled in with arbitrary user data.
- The given userData will be retained and passed back in to delegate
- methods that are acting on this open file.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the directory was successfully created.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->This should create and open the file at the same time. The
- attributes may contain keys similar to setAttributes:.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/moveItemAtPath:toPath:error:; name=NSObject(GMUserFileSystemOperations)::moveItemAtPath:toPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/moveItemAtPath:toPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="moveItemAtPath:toPath:error:">moveItemAtPath:toPath:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Moves or renames an item.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->rename(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/moveItemAtPath //apple_ref/occ/clm/moveItemAtPath //apple_ref/occ/intfcm/moveItemAtPath //apple_ref/occ/intfm/moveItemAtPath //apple_ref/occ/func/moveItemAtPath //apple_ref/occ/ftmplt/moveItemAtPath //apple_ref/occ/defn/moveItemAtPath //apple_ref/occ/macro/moveItemAtPath" --><span class="function">moveItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">source</span> <!-- a logicalPath="//apple_ref/occ/instm/toPath //apple_ref/occ/clm/toPath //apple_ref/occ/intfcm/toPath //apple_ref/occ/intfm/toPath //apple_ref/occ/func/toPath //apple_ref/occ/ftmplt/toPath //apple_ref/occ/defn/toPath //apple_ref/occ/macro/toPath" --><span class="function">toPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">destination</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>source </code></dt>
- <dd>The source file or directory.</dd>
- <dt><code>destination </code></dt>
- <dd>The destination file or directory.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the move was successful.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Move, also known as rename, is one of the more difficult file
- system methods to implement properly. Care should be taken to handle all
- error conditions and return proper POSIX error codes.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeDirectoryAtPath:error:; name=NSObject(GMUserFileSystemOperations)::removeDirectoryAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeDirectoryAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="removeDirectoryAtPath:error:">removeDirectoryAtPath:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Remove the directory at the given path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->rmdir(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/removeDirectoryAtPath //apple_ref/occ/clm/removeDirectoryAtPath //apple_ref/occ/intfcm/removeDirectoryAtPath //apple_ref/occ/intfm/removeDirectoryAtPath //apple_ref/occ/func/removeDirectoryAtPath //apple_ref/occ/ftmplt/removeDirectoryAtPath //apple_ref/occ/defn/removeDirectoryAtPath //apple_ref/occ/macro/removeDirectoryAtPath" --><span class="function">removeDirectoryAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The directory to remove.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the directory was successfully removed.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->Unlike NSFileManager, this should not recursively remove
- subdirectories. If this method is not implemented, then removeItemAtPath
- will be called even for directories.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeItemAtPath:error:; name=NSObject(GMUserFileSystemOperations)::removeItemAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeItemAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="removeItemAtPath:error:">removeItemAtPath:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Removes the item at the given path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->unlink(2), rmdir(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/removeItemAtPath //apple_ref/occ/clm/removeItemAtPath //apple_ref/occ/intfcm/removeItemAtPath //apple_ref/occ/intfm/removeItemAtPath //apple_ref/occ/func/removeItemAtPath //apple_ref/occ/ftmplt/removeItemAtPath //apple_ref/occ/defn/removeItemAtPath //apple_ref/occ/macro/removeItemAtPath" --><span class="function">removeItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the item to remove.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the item was successfully removed.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->This should not recursively remove subdirectories. If
- removeDirectoryAtPath is implemented, then that will be called instead of
- this selector if the item is a directory.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/linkItemAtPath:toPath:error:; name=NSObject(GMUserFileSystemOperations)::linkItemAtPath:toPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/linkItemAtPath:toPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="linkItemAtPath:toPath:error:">linkItemAtPath:toPath:error:</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Creates a hard link.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->link(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/linkItemAtPath //apple_ref/occ/clm/linkItemAtPath //apple_ref/occ/intfcm/linkItemAtPath //apple_ref/occ/intfm/linkItemAtPath //apple_ref/occ/func/linkItemAtPath //apple_ref/occ/ftmplt/linkItemAtPath //apple_ref/occ/defn/linkItemAtPath //apple_ref/occ/macro/linkItemAtPath" --><span class="function">linkItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/toPath //apple_ref/occ/clm/toPath //apple_ref/occ/intfcm/toPath //apple_ref/occ/intfm/toPath //apple_ref/occ/func/toPath //apple_ref/occ/ftmplt/toPath //apple_ref/occ/defn/toPath //apple_ref/occ/macro/toPath" --><span class="function">toPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">otherPath</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path for the created hard link.</dd>
- <dt><code>otherPath </code></dt>
- <dd>The path that is the target of the created hard link.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the hard link was successfully created.
-
- <!-- end return value --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createSymbolicLinkAtPath:withDestinationPath:error:; name=NSObject(GMUserFileSystemOperations)::createSymbolicLinkAtPath:withDestinationPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createSymbolicLinkAtPath:withDestinationPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="createSymbolicLinkAtPath:withDestinationPath:error:">createSymbolicLinkAtPath:withDestinationPath:error:</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Creates a symbolic link.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->symlink(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/createSymbolicLinkAtPath //apple_ref/occ/clm/createSymbolicLinkAtPath //apple_ref/occ/intfcm/createSymbolicLinkAtPath //apple_ref/occ/intfm/createSymbolicLinkAtPath //apple_ref/occ/func/createSymbolicLinkAtPath //apple_ref/occ/ftmplt/createSymbolicLinkAtPath //apple_ref/occ/defn/createSymbolicLinkAtPath //apple_ref/occ/macro/createSymbolicLinkAtPath" --><span class="function">createSymbolicLinkAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/withDestinationPath //apple_ref/occ/clm/withDestinationPath //apple_ref/occ/intfcm/withDestinationPath //apple_ref/occ/intfm/withDestinationPath //apple_ref/occ/func/withDestinationPath //apple_ref/occ/ftmplt/withDestinationPath //apple_ref/occ/defn/withDestinationPath //apple_ref/occ/macro/withDestinationPath" --><span class="function">withDestinationPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">otherPath</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path for the created symbolic link.</dd>
- <dt><code>otherPath </code></dt>
- <dd>The path that is the target of the symbolic link.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the symbolic link was successfully created.
-
- <!-- end return value --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/destinationOfSymbolicLinkAtPath:error:; name=NSObject(GMUserFileSystemOperations)::destinationOfSymbolicLinkAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/destinationOfSymbolicLinkAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="destinationOfSymbolicLinkAtPath:error:">destinationOfSymbolicLinkAtPath:error:</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Reads the destination of a symbolic link.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->readlink(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/destinationOfSymbolicLinkAtPath //apple_ref/occ/clm/destinationOfSymbolicLinkAtPath //apple_ref/occ/intfcm/destinationOfSymbolicLinkAtPath //apple_ref/occ/intfm/destinationOfSymbolicLinkAtPath //apple_ref/occ/func/destinationOfSymbolicLinkAtPath //apple_ref/occ/ftmplt/destinationOfSymbolicLinkAtPath //apple_ref/occ/defn/destinationOfSymbolicLinkAtPath //apple_ref/occ/macro/destinationOfSymbolicLinkAtPath" --><span class="function">destinationOfSymbolicLinkAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the specified symlink.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->The destination path of the symbolic link or nil on error.
-
- <!-- end return value --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/extendedAttributesOfItemAtPath:error:; name=NSObject(GMUserFileSystemOperations)::extendedAttributesOfItemAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/extendedAttributesOfItemAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="extendedAttributesOfItemAtPath:error:">extendedAttributesOfItemAtPath:error: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Returns the names of the extended attributes at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->listxattr(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSArray //apple_ref/occ/tdef/NSArray //apple_ref/occ/tag/NSArray //apple_ref/occ/econst/NSArray //apple_ref/occ/struct/NSArray //apple_ref/occ/clconst/NSArray //apple_ref/occ/intf/NSArray" --><span class="type">NSArray</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/extendedAttributesOfItemAtPath //apple_ref/occ/clm/extendedAttributesOfItemAtPath //apple_ref/occ/intfcm/extendedAttributesOfItemAtPath //apple_ref/occ/intfm/extendedAttributesOfItemAtPath //apple_ref/occ/func/extendedAttributesOfItemAtPath //apple_ref/occ/ftmplt/extendedAttributesOfItemAtPath //apple_ref/occ/defn/extendedAttributesOfItemAtPath //apple_ref/occ/macro/extendedAttributesOfItemAtPath" --><span class="function">extendedAttributesOfItemAtPath</span><!-- /a -->:<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>path </code></dt>
- <dd>The path to the specified file.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->An NSArray of extended attribute names or nil on error.
-
- <!-- end return value --></p>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->If there are no extended attributes at this path, then return an
- empty array. Return nil only on error.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/valueOfExtendedAttribute:ofItemAtPath:position:error:; name=NSObject(GMUserFileSystemOperations)::valueOfExtendedAttribute:ofItemAtPath:position:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/valueOfExtendedAttribute:ofItemAtPath:position:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="valueOfExtendedAttribute:ofItemAtPath:position:error:">valueOfExtendedAttribute:ofItemAtPath:position:error:</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Returns the contents of the extended attribute at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->getxattr(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSData //apple_ref/occ/tdef/NSData //apple_ref/occ/tag/NSData //apple_ref/occ/econst/NSData //apple_ref/occ/struct/NSData //apple_ref/occ/clconst/NSData //apple_ref/occ/intf/NSData" --><span class="type">NSData</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/valueOfExtendedAttribute //apple_ref/occ/clm/valueOfExtendedAttribute //apple_ref/occ/intfcm/valueOfExtendedAttribute //apple_ref/occ/intfm/valueOfExtendedAttribute //apple_ref/occ/func/valueOfExtendedAttribute //apple_ref/occ/ftmplt/valueOfExtendedAttribute //apple_ref/occ/defn/valueOfExtendedAttribute //apple_ref/occ/macro/valueOfExtendedAttribute" --><span class="function">valueOfExtendedAttribute</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">name</span> <!-- a logicalPath="//apple_ref/occ/instm/ofItemAtPath //apple_ref/occ/clm/ofItemAtPath //apple_ref/occ/intfcm/ofItemAtPath //apple_ref/occ/intfm/ofItemAtPath //apple_ref/occ/func/ofItemAtPath //apple_ref/occ/ftmplt/ofItemAtPath //apple_ref/occ/defn/ofItemAtPath //apple_ref/occ/macro/ofItemAtPath" --><span class="function">ofItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/position //apple_ref/occ/clm/position //apple_ref/occ/intfcm/position //apple_ref/occ/intfm/position //apple_ref/occ/func/position //apple_ref/occ/ftmplt/position //apple_ref/occ/defn/position //apple_ref/occ/macro/position" --><span class="function">position</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/off_t //apple_ref/occ/tdef/off_t //apple_ref/occ/tag/off_t //apple_ref/occ/econst/off_t //apple_ref/occ/struct/off_t //apple_ref/occ/clconst/off_t //apple_ref/occ/intf/off_t" --><span class="type">off_t</span><!-- /a -->)<span class="param">position</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>name </code></dt>
- <dd>The name of the extended attribute.</dd>
- <dt><code>path </code></dt>
- <dd>The path to the specified file.</dd>
- <dt><code>position </code></dt>
- <dd>The offset within the attribute to read from.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->The data corresponding to the attribute or nil on error.
-
- <!-- end return value --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setExtendedAttribute:ofItemAtPath:value:position:options:error:; name=NSObject(GMUserFileSystemOperations)::setExtendedAttribute:ofItemAtPath:value:position:options:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setExtendedAttribute:ofItemAtPath:value:position:options:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="setExtendedAttribute:ofItemAtPath:value:position:options:error:">setExtendedAttribute:ofItemAtPath:value:position:options:error:</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Writes the contents of the extended attribute at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->setxattr(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setExtendedAttribute //apple_ref/occ/clm/setExtendedAttribute //apple_ref/occ/intfcm/setExtendedAttribute //apple_ref/occ/intfm/setExtendedAttribute //apple_ref/occ/func/setExtendedAttribute //apple_ref/occ/ftmplt/setExtendedAttribute //apple_ref/occ/defn/setExtendedAttribute //apple_ref/occ/macro/setExtendedAttribute" --><span class="function">setExtendedAttribute</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">name</span> <!-- a logicalPath="//apple_ref/occ/instm/ofItemAtPath //apple_ref/occ/clm/ofItemAtPath //apple_ref/occ/intfcm/ofItemAtPath //apple_ref/occ/intfm/ofItemAtPath //apple_ref/occ/func/ofItemAtPath //apple_ref/occ/ftmplt/ofItemAtPath //apple_ref/occ/defn/ofItemAtPath //apple_ref/occ/macro/ofItemAtPath" --><span class="function">ofItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/value //apple_ref/occ/clm/value //apple_ref/occ/intfcm/value //apple_ref/occ/intfm/value //apple_ref/occ/func/value //apple_ref/occ/ftmplt/value //apple_ref/occ/defn/value //apple_ref/occ/macro/value" --><span class="function">value</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSData //apple_ref/occ/tdef/NSData //apple_ref/occ/tag/NSData //apple_ref/occ/econst/NSData //apple_ref/occ/struct/NSData //apple_ref/occ/clconst/NSData //apple_ref/occ/intf/NSData" --><span class="type">NSData</span><!-- /a --> <span class="type">*</span>)<span class="param">value</span> <!-- a logicalPath="//apple_ref/occ/instm/position //apple_ref/occ/clm/position //apple_ref/occ/intfcm/position //apple_ref/occ/intfm/position //apple_ref/occ/func/position //apple_ref/occ/ftmplt/position //apple_ref/occ/defn/position //apple_ref/occ/macro/position" --><span class="function">position</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/off_t //apple_ref/occ/tdef/off_t //apple_ref/occ/tag/off_t //apple_ref/occ/econst/off_t //apple_ref/occ/struct/off_t //apple_ref/occ/clconst/off_t //apple_ref/occ/intf/off_t" --><span class="type">off_t</span><!-- /a -->)<span class="param">position</span> <!-- a logicalPath="//apple_ref/occ/instm/options //apple_ref/occ/clm/options //apple_ref/occ/intfcm/options //apple_ref/occ/intfm/options //apple_ref/occ/func/options //apple_ref/occ/ftmplt/options //apple_ref/occ/defn/options //apple_ref/occ/macro/options" --><span class="function">options</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/int //apple_ref/occ/tdef/int //apple_ref/occ/tag/int //apple_ref/occ/econst/int //apple_ref/occ/struct/int //apple_ref/occ/clconst/int //apple_ref/occ/intf/int" --><span class="type">int</span><!-- /a -->)<span class="param">options</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>name </code></dt>
- <dd>The name of the extended attribute.</dd>
- <dt><code>path </code></dt>
- <dd>The path to the specified file.</dd>
- <dt><code>value </code></dt>
- <dd>The data to write.</dd>
- <dt><code>position </code></dt>
- <dd>The offset within the attribute to write to</dd>
- <dt><code>options </code></dt>
- <dd>Options (see setxattr man page).</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the attribute was successfully written.
-
- <!-- end return value --></p>
- <p></p>
- <hr>
- <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeExtendedAttribute:ofItemAtPath:error:; name=NSObject(GMUserFileSystemOperations)::removeExtendedAttribute:ofItemAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeExtendedAttribute:ofItemAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
- <h3><a name="removeExtendedAttribute:ofItemAtPath:error:">removeExtendedAttribute:ofItemAtPath:error:</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Removes the extended attribute at the specified path.
- <!-- end abstract --></p>
- <p></p>
- <b>See Also:</b><blockquote><dl>
- <dt>
- <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->removexattr(2)<!-- /a -->
- </dt>
- <dd></dd>
- </dl></blockquote>
- <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/removeExtendedAttribute //apple_ref/occ/clm/removeExtendedAttribute //apple_ref/occ/intfcm/removeExtendedAttribute //apple_ref/occ/intfm/removeExtendedAttribute //apple_ref/occ/func/removeExtendedAttribute //apple_ref/occ/ftmplt/removeExtendedAttribute //apple_ref/occ/defn/removeExtendedAttribute //apple_ref/occ/macro/removeExtendedAttribute" --><span class="function">removeExtendedAttribute</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">name</span> <!-- a logicalPath="//apple_ref/occ/instm/ofItemAtPath //apple_ref/occ/clm/ofItemAtPath //apple_ref/occ/intfcm/ofItemAtPath //apple_ref/occ/intfm/ofItemAtPath //apple_ref/occ/func/ofItemAtPath //apple_ref/occ/ftmplt/ofItemAtPath //apple_ref/occ/defn/ofItemAtPath //apple_ref/occ/macro/ofItemAtPath" --><span class="function">ofItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>name </code></dt>
- <dd>The name of the extended attribute.</dd>
- <dt><code>path </code></dt>
- <dd>The path to the specified file.</dd>
- <dt><code>error </code></dt>
- <dd>Should be filled with a POSIX error in case of failure.</dd>
- </dl>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
- <p><!-- begin return value -->YES if the attribute was successfully removed.
-
- <!-- end return value --></p>
- <p></p>
- <p>Last Updated: Monday, November 17, 2008
- </p>
- </body>
- </html>