PageRenderTime 55ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/core/sdk-objc/Documentation/GMUserFileSystem/Categories/NSObject_GMUserFileSystemOperations_/CompositePage.html

http://macfuse.googlecode.com/
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
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
  2. <html>
  3. <head>
  4. <title>NSObject(GMUserFileSystemOperations) </title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="generator" content="HeaderDoc">
  7. <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>
  8. </head>
  9. <body bgcolor="#ffffff">
  10. <a name="top"></a><a name="//apple_ref/doc/class/NSObject(GMUserFileSystemOperations)" title="NSObject(GMUserFileSystemOperations) "></a><hr>
  11. <table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  12. <h1><a name="NSObject(GMUserFileSystemOperations)">NSObject(GMUserFileSystemOperations) </a></h1>
  13. </td></tr></table>
  14. <hr>
  15. <p><b>Extends&nbsp;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>
  16. <h5 class="tight">
  17. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  18. </h5>
  19. <p><!-- begin discussion --> The core set of file system operations the delegate must implement.
  20. Unless otherwise noted, they typically should behave like the NSFileManager
  21. equivalent. However, the error codes that they return should correspond to
  22. the BSD-equivalent call and be in the NSPOSIXErrorDomain.<br><br>
  23. For a read-only filesystem, you can typically pick-and-choose which methods
  24. to implement. For example, a minimal read-only filesystem might implement:</p>
  25. <ul>
  26. - (NSArray *)contentsOfDirectoryAtPath:(NSString *)path
  27. error:(NSError **)error;<br>
  28. - (NSDictionary *)attributesOfItemAtPath:(NSString *)path
  29. userData:(id)userData
  30. error:(NSError **)error;<br>
  31. - (NSData *)contentsAtPath:(NSString *)path;</ul>
  32. <p>
  33. For a writeable filesystem, the Finder can be quite picky unless the majority
  34. of these methods are implemented. However, you can safely skip hard-links,
  35. symbolic links, and extended attributes.
  36. <!-- end discussion --></p>
  37. <p></p>
  38. <hr>
  39. <br><h2>Methods</h2>
  40. <a name="HeaderDoc_methods"></a><dl>
  41. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsOfDirectoryAtPath:error:" target="_top">-contentsOfDirectoryAtPath:error: </a></tt></dt>
  42. <dd>Returns directory contents at the specified path.
  43. </dd>
  44. <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>
  45. <dd>Returns attributes at the specified path.
  46. </dd>
  47. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfFileSystemForPath:error:" target="_top">-attributesOfFileSystemForPath:error: </a></tt></dt>
  48. <dd>Returns file system attributes.
  49. </dd>
  50. <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>
  51. <dd>Set attributes at the specified path.
  52. </dd>
  53. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsAtPath:" target="_top">-contentsAtPath: </a></tt></dt>
  54. <dd>Returns directory contents at the specified path.
  55. </dd>
  56. <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>
  57. <dd>Opens the file at the given path for read/write.
  58. </dd>
  59. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/releaseFileAtPath:userData:" target="_top">-releaseFileAtPath:userData: </a></tt></dt>
  60. <dd>Called when an opened file is closed.
  61. </dd>
  62. <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>
  63. <dd>Reads data from the open file at the specified path.
  64. </dd>
  65. <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>
  66. <dd>Writes data to the open file at the specified path.
  67. </dd>
  68. <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>
  69. <dd>Atomically exchanges data between files.
  70. </dd>
  71. <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>
  72. <dd>Creates a directory at the specified path.
  73. </dd>
  74. <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>
  75. <dd>Creates and opens a file at the specified path.
  76. </dd>
  77. <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>
  78. <dd>Moves or renames an item.
  79. </dd>
  80. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeDirectoryAtPath:error:" target="_top">-removeDirectoryAtPath:error: </a></tt></dt>
  81. <dd>Remove the directory at the given path.
  82. </dd>
  83. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeItemAtPath:error:" target="_top">-removeItemAtPath:error: </a></tt></dt>
  84. <dd>Removes the item at the given path.
  85. </dd>
  86. <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>
  87. <dd>Creates a hard link.
  88. </dd>
  89. <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>
  90. <dd>Creates a symbolic link.
  91. </dd>
  92. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/destinationOfSymbolicLinkAtPath:error:" target="_top">-destinationOfSymbolicLinkAtPath:error:</a></tt></dt>
  93. <dd>Reads the destination of a symbolic link.
  94. </dd>
  95. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/extendedAttributesOfItemAtPath:error:" target="_top">-extendedAttributesOfItemAtPath:error: </a></tt></dt>
  96. <dd>Returns the names of the extended attributes at the specified path.
  97. </dd>
  98. <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>
  99. <dd>Returns the contents of the extended attribute at the specified path.
  100. </dd>
  101. <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>
  102. <dd>Writes the contents of the extended attribute at the specified path.
  103. </dd>
  104. <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>
  105. <dd>Removes the extended attribute at the specified path.
  106. </dd>
  107. </dl>
  108. <hr>
  109. <!-- 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">
  110. <h3><a name="contentsOfDirectoryAtPath:error:">contentsOfDirectoryAtPath:error: </a></h3>
  111. </td></tr></table>
  112. <hr>
  113. <p><!-- begin abstract -->Returns directory contents at the specified path.
  114. <!-- end abstract --></p>
  115. <p></p>
  116. <b>See Also:</b><blockquote><dl>
  117. <dt>
  118. <!-- 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 -->
  119. </dt>
  120. <dd></dd>
  121. </dl></blockquote>
  122. <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>
  123. <!-- 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>
  124. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  125. <dl>
  126. <dt><code>path </code></dt>
  127. <dd>The path to a directory.</dd>
  128. <dt><code>error </code></dt>
  129. <dd>Should be filled with a POSIX error in case of failure.</dd>
  130. </dl>
  131. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  132. <p><!-- begin return value -->An array of NSString or nil on error.
  133. <!-- end return value --></p>
  134. <h5 class="tight">
  135. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  136. </h5>
  137. <p><!-- begin discussion -->Returns an array of NSString containing the names of files and
  138. sub-directories in the specified directory.
  139. <!-- end discussion --></p>
  140. <p></p>
  141. <hr>
  142. <!-- 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">
  143. <h3><a name="attributesOfItemAtPath:userData:error:">attributesOfItemAtPath:userData:error: </a></h3>
  144. </td></tr></table>
  145. <hr>
  146. <p><!-- begin abstract -->Returns attributes at the specified path.
  147. <!-- end abstract --></p>
  148. <p></p>
  149. <b>See Also:</b><blockquote><dl>
  150. <dt>
  151. <!-- 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 -->
  152. </dt>
  153. <dd></dd>
  154. </dl></blockquote>
  155. <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>
  156. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  157. <dl>
  158. <dt><code>path </code></dt>
  159. <dd>The path to the item.</dd>
  160. <dt><code>userData </code></dt>
  161. <dd>The userData corresponding to this open file or nil.</dd>
  162. <dt><code>error </code></dt>
  163. <dd>Should be filled with a POSIX error in case of failure.</dd>
  164. </dl>
  165. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  166. <p><!-- begin return value -->A dictionary of attributes or nil on error.
  167. <!-- end return value --></p>
  168. <h5 class="tight">
  169. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  170. </h5>
  171. <p><!-- begin discussion -->Returns a dictionary of attributes at the given path. It is required to
  172. return at least the NSFileType attribute. You may omit the NSFileSize
  173. attribute if contentsAtPath: is implemented, although this is less efficient.
  174. The following keys are currently supported (unknown keys are ignored):</p>
  175. <ul>
  176. <li>NSFileType [Required]
  177. </li>
  178. <li>NSFileSize [Recommended]
  179. </li>
  180. <li>NSFileModificationDate
  181. </li>
  182. <li>NSFileReferenceCount
  183. </li>
  184. <li>NSFilePosixPermissions
  185. </li>
  186. <li>NSFileOwnerAccountID
  187. </li>
  188. <li>NSFileGroupOwnerAccountID
  189. </li>
  190. <li>NSFileSystemFileNumber (64-bit on 10.5+)
  191. </li>
  192. <li>NSFileCreationDate (if supports extended dates)
  193. </li>
  194. <li>kGMUserFileSystemFileBackupDateKey (if supports extended dates)
  195. </li>
  196. <li>kGMUserFileSystemFileChangeDateKey
  197. </li>
  198. <li>kGMUserFileSystemFileAccessDateKey
  199. </li>
  200. <li>kGMUserFileSystemFileFlagsKey</li>
  201. </ul>
  202. <br><p>
  203. If this is the fstat variant and userData was supplied in openFileAtPath: or
  204. createFileAtPath: then it will be passed back in this call.<br><!-- end discussion --></p>
  205. <p></p>
  206. <hr>
  207. <!-- 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">
  208. <h3><a name="attributesOfFileSystemForPath:error:">attributesOfFileSystemForPath:error: </a></h3>
  209. </td></tr></table>
  210. <hr>
  211. <p><!-- begin abstract -->Returns file system attributes.
  212. <!-- end abstract --></p>
  213. <p></p>
  214. <b>See Also:</b><blockquote><dl>
  215. <dt>
  216. <!-- 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 -->
  217. </dt>
  218. <dd></dd>
  219. </dl></blockquote>
  220. <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>
  221. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  222. <dl>
  223. <dt><code>path </code></dt>
  224. <dd>A path on the file system (it is safe to ignore this).</dd>
  225. <dt><code>error </code></dt>
  226. <dd>Should be filled with a POSIX error in case of failure.</dd>
  227. </dl>
  228. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  229. <p><!-- begin return value -->A dictionary of attributes for the file system.
  230. <!-- end return value --></p>
  231. <h5 class="tight">
  232. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  233. </h5>
  234. <p><!-- begin discussion -->Returns a dictionary of attributes for the file system.
  235. The following keys are currently supported (unknown keys are ignored):</p>
  236. <ul>
  237. <li>NSFileSystemSize
  238. </li>
  239. <li>NSFileSystemFreeSize
  240. </li>
  241. <li>NSFileSystemNodes
  242. </li>
  243. <li>NSFileSystemFreeNodes
  244. </li>
  245. <li>kGMUserFileSystemVolumeSupportsExtendedDatesKey</li>
  246. </ul>
  247. <br><!-- end discussion --><p></p>
  248. <hr>
  249. <!-- 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">
  250. <h3><a name="setAttributes:ofItemAtPath:userData:error:">setAttributes:ofItemAtPath:userData:error: </a></h3>
  251. </td></tr></table>
  252. <hr>
  253. <p><!-- begin abstract -->Set attributes at the specified path.
  254. <!-- end abstract --></p>
  255. <p></p>
  256. <b>See Also:</b><blockquote><dl>
  257. <dt>
  258. <!-- 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 -->
  259. </dt>
  260. <dd></dd>
  261. <dt>
  262. <!-- 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 -->
  263. </dt>
  264. <dd></dd>
  265. </dl></blockquote>
  266. <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>
  267. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  268. <dl>
  269. <dt><code>attributes </code></dt>
  270. <dd>The attributes to set.</dd>
  271. <dt><code>path </code></dt>
  272. <dd>The path to the item.</dd>
  273. <dt><code>userData </code></dt>
  274. <dd>The userData corresponding to this open file or nil.</dd>
  275. <dt><code>error </code></dt>
  276. <dd>Should be filled with a POSIX error in case of failure.</dd>
  277. </dl>
  278. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  279. <p><!-- begin return value -->YES if the attributes are successfully set.
  280. <!-- end return value --></p>
  281. <h5 class="tight">
  282. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  283. </h5>
  284. <p><!-- begin discussion -->Sets the attributes for the item at the specified path. The following keys
  285. may be present (you must ignore unknown keys):</p>
  286. <ul>
  287. <li>NSFileSize
  288. </li>
  289. <li>NSFileOwnerAccountID
  290. </li>
  291. <li>NSFileGroupOwnerAccountID
  292. </li>
  293. <li>NSFilePosixPermissions
  294. </li>
  295. <li>NSFileModificationDate
  296. </li>
  297. <li>NSFileCreationDate (if supports extended dates)
  298. </li>
  299. <li>kGMUserFileSystemFileBackupDateKey (if supports extended dates)
  300. </li>
  301. <li>kGMUserFileSystemFileChangeDateKey
  302. </li>
  303. <li>kGMUserFileSystemFileAccessDateKey
  304. </li>
  305. <li>kGMUserFileSystemFileFlagsKey</li>
  306. </ul>
  307. <br><p>
  308. If this is the f-variant and userData was supplied in openFileAtPath: or
  309. createFileAtPath: then it will be passed back in this call.<br><!-- end discussion --></p>
  310. <p></p>
  311. <hr>
  312. <!-- 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">
  313. <h3><a name="contentsAtPath:">contentsAtPath: </a></h3>
  314. </td></tr></table>
  315. <hr>
  316. <p><!-- begin abstract -->Returns directory contents at the specified path.
  317. <!-- end abstract --></p>
  318. <p></p>
  319. <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>
  320. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  321. <dl>
  322. <dt><code>path </code></dt>
  323. <dd>The path to the file.</dd>
  324. </dl>
  325. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  326. <p><!-- begin return value -->The contents of the file or nil if a file does not exist at path.
  327. <!-- end return value --></p>
  328. <h5 class="tight">
  329. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  330. </h5>
  331. <p><!-- begin discussion -->Returns the full contents at the given path. Implementation of
  332. this delegate method is recommended only by very simple file systems that are
  333. not concerned with performance. If contentsAtPath is implemented then you can
  334. skip open/release/read.
  335. <!-- end discussion --></p>
  336. <p></p>
  337. <hr>
  338. <!-- 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">
  339. <h3><a name="openFileAtPath:mode:userData:error:">openFileAtPath:mode:userData:error: </a></h3>
  340. </td></tr></table>
  341. <hr>
  342. <p><!-- begin abstract -->Opens the file at the given path for read/write.
  343. <!-- end abstract --></p>
  344. <p></p>
  345. <b>See Also:</b><blockquote><dl>
  346. <dt>
  347. <!-- 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 -->
  348. </dt>
  349. <dd></dd>
  350. </dl></blockquote>
  351. <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>
  352. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  353. <dl>
  354. <dt><code>path </code></dt>
  355. <dd>The path to the file.</dd>
  356. <dt><code>mode </code></dt>
  357. <dd>The open mode for the file (e.g. O_RDWR, etc.)</dd>
  358. <dt><code>userData </code></dt>
  359. <dd>Out parameter that can be filled in with arbitrary user data.
  360. The given userData will be retained and passed back in to delegate
  361. methods that are acting on this open file.</dd>
  362. <dt><code>error </code></dt>
  363. <dd>Should be filled with a POSIX error in case of failure.</dd>
  364. </dl>
  365. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  366. <p><!-- begin return value -->YES if the file was opened successfully.
  367. <!-- end return value --></p>
  368. <h5 class="tight">
  369. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  370. </h5>
  371. <p><!-- begin discussion -->This will only be called for existing files. If the file needs
  372. to be created then createFileAtPath: will be called instead.
  373. <!-- end discussion --></p>
  374. <p></p>
  375. <hr>
  376. <!-- 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">
  377. <h3><a name="releaseFileAtPath:userData:">releaseFileAtPath:userData: </a></h3>
  378. </td></tr></table>
  379. <hr>
  380. <p><!-- begin abstract -->Called when an opened file is closed.
  381. <!-- end abstract --></p>
  382. <p></p>
  383. <b>See Also:</b><blockquote><dl>
  384. <dt>
  385. <!-- 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 -->
  386. </dt>
  387. <dd></dd>
  388. </dl></blockquote>
  389. <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>
  390. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  391. <dl>
  392. <dt><code>path </code></dt>
  393. <dd>The path to the file.</dd>
  394. <dt><code>userData </code></dt>
  395. <dd>The userData corresponding to this open file or nil.</dd>
  396. </dl>
  397. <h5 class="tight">
  398. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  399. </h5>
  400. <p><!-- begin discussion -->If userData was provided in the corresponding openFileAtPath: call
  401. then it will be passed in userData and released after this call completes.
  402. <!-- end discussion --></p>
  403. <p></p>
  404. <hr>
  405. <!-- 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">
  406. <h3><a name="readFileAtPath:userData:buffer:size:offset:error:">readFileAtPath:userData:buffer:size:offset:error: </a></h3>
  407. </td></tr></table>
  408. <hr>
  409. <p><!-- begin abstract -->Reads data from the open file at the specified path.
  410. <!-- end abstract --></p>
  411. <p></p>
  412. <b>See Also:</b><blockquote><dl>
  413. <dt>
  414. <!-- 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 -->
  415. </dt>
  416. <dd></dd>
  417. </dl></blockquote>
  418. <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>
  419. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  420. <dl>
  421. <dt><code>path </code></dt>
  422. <dd>The path to the file.</dd>
  423. <dt><code>userData </code></dt>
  424. <dd>The userData corresponding to this open file or nil.</dd>
  425. <dt><code>buffer </code></dt>
  426. <dd>Byte buffer to read data from the file into.</dd>
  427. <dt><code>size </code></dt>
  428. <dd>The size of the provided buffer.</dd>
  429. <dt><code>offset </code></dt>
  430. <dd>The offset in the file from which to read data.</dd>
  431. <dt><code>error </code></dt>
  432. <dd>Should be filled with a POSIX error in case of failure.</dd>
  433. </dl>
  434. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  435. <p><!-- begin return value -->The number of bytes read or -1 on error.
  436. <!-- end return value --></p>
  437. <h5 class="tight">
  438. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  439. </h5>
  440. <p><!-- begin discussion -->Reads data from the file starting at offset into the provided
  441. buffer and returns the number of bytes read. If userData was provided in the
  442. corresponding openFileAtPath: or createFileAtPath: call then it will be
  443. passed in.
  444. <!-- end discussion --></p>
  445. <p></p>
  446. <hr>
  447. <!-- 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">
  448. <h3><a name="writeFileAtPath:userData:buffer:size:offset:error:">writeFileAtPath:userData:buffer:size:offset:error: </a></h3>
  449. </td></tr></table>
  450. <hr>
  451. <p><!-- begin abstract -->Writes data to the open file at the specified path.
  452. <!-- end abstract --></p>
  453. <p></p>
  454. <b>See Also:</b><blockquote><dl>
  455. <dt>
  456. <!-- 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 -->
  457. </dt>
  458. <dd></dd>
  459. </dl></blockquote>
  460. <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>
  461. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  462. <dl>
  463. <dt><code>path </code></dt>
  464. <dd>The path to the file.</dd>
  465. <dt><code>userData </code></dt>
  466. <dd>The userData corresponding to this open file or nil.</dd>
  467. <dt><code>buffer </code></dt>
  468. <dd>Byte buffer containing the data to write to the file.</dd>
  469. <dt><code>size </code></dt>
  470. <dd>The size of the provided buffer.</dd>
  471. <dt><code>offset </code></dt>
  472. <dd>The offset in the file to write data.</dd>
  473. <dt><code>error </code></dt>
  474. <dd>Should be filled with a POSIX error in case of failure.</dd>
  475. </dl>
  476. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  477. <p><!-- begin return value -->The number of bytes written or -1 on error.
  478. <!-- end return value --></p>
  479. <h5 class="tight">
  480. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  481. </h5>
  482. <p><!-- begin discussion -->Writes data to the file starting at offset from the provided
  483. buffer and returns the number of bytes written. If userData was provided in
  484. the corresponding openFileAtPath: or createFileAtPath: call then it will be
  485. passed in.
  486. <!-- end discussion --></p>
  487. <p></p>
  488. <hr>
  489. <!-- 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">
  490. <h3><a name="exchangeDataOfItemAtPath:withItemAtPath:error:">exchangeDataOfItemAtPath:withItemAtPath:error: </a></h3>
  491. </td></tr></table>
  492. <hr>
  493. <p><!-- begin abstract -->Atomically exchanges data between files.
  494. <!-- end abstract --></p>
  495. <p></p>
  496. <b>See Also:</b><blockquote><dl>
  497. <dt>
  498. <!-- 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 -->
  499. </dt>
  500. <dd></dd>
  501. </dl></blockquote>
  502. <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>
  503. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  504. <dl>
  505. <dt><code>path1 </code></dt>
  506. <dd>The path to the file.</dd>
  507. <dt><code>path2 </code></dt>
  508. <dd>The path to the other file.</dd>
  509. <dt><code>error </code></dt>
  510. <dd>Should be filled with a POSIX error in case of failure.</dd>
  511. </dl>
  512. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  513. <p><!-- begin return value -->YES if data was exchanged successfully.
  514. <!-- end return value --></p>
  515. <h5 class="tight">
  516. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  517. </h5>
  518. <p><!-- begin discussion -->Called to atomically exchange file data between path1 and path2.
  519. <!-- end discussion --></p>
  520. <p></p>
  521. <hr>
  522. <!-- 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">
  523. <h3><a name="createDirectoryAtPath:attributes:error:">createDirectoryAtPath:attributes:error: </a></h3>
  524. </td></tr></table>
  525. <hr>
  526. <p><!-- begin abstract -->Creates a directory at the specified path.
  527. <!-- end abstract --></p>
  528. <p></p>
  529. <b>See Also:</b><blockquote><dl>
  530. <dt>
  531. <!-- 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 -->
  532. </dt>
  533. <dd></dd>
  534. </dl></blockquote>
  535. <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>
  536. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  537. <dl>
  538. <dt><code>path </code></dt>
  539. <dd>The directory path to create.</dd>
  540. <dt><code>attributes </code></dt>
  541. <dd>Set of attributes to apply to the newly created directory.</dd>
  542. <dt><code>error </code></dt>
  543. <dd>Should be filled with a POSIX error in case of failure.</dd>
  544. </dl>
  545. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  546. <p><!-- begin return value -->YES if the directory was successfully created.
  547. <!-- end return value --></p>
  548. <h5 class="tight">
  549. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  550. </h5>
  551. <p><!-- begin discussion -->The attributes may contain keys similar to setAttributes:.
  552. <!-- end discussion --></p>
  553. <p></p>
  554. <hr>
  555. <!-- 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">
  556. <h3><a name="createFileAtPath:attributes:userData:error:">createFileAtPath:attributes:userData:error: </a></h3>
  557. </td></tr></table>
  558. <hr>
  559. <p><!-- begin abstract -->Creates and opens a file at the specified path.
  560. <!-- end abstract --></p>
  561. <p></p>
  562. <b>See Also:</b><blockquote><dl>
  563. <dt>
  564. <!-- 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 -->
  565. </dt>
  566. <dd></dd>
  567. </dl></blockquote>
  568. <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>
  569. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  570. <dl>
  571. <dt><code>path </code></dt>
  572. <dd>The path of the file to create.</dd>
  573. <dt><code>attributes </code></dt>
  574. <dd>Set of attributes to apply to the newly created file.</dd>
  575. <dt><code>userData </code></dt>
  576. <dd>Out parameter that can be filled in with arbitrary user data.
  577. The given userData will be retained and passed back in to delegate
  578. methods that are acting on this open file.</dd>
  579. <dt><code>error </code></dt>
  580. <dd>Should be filled with a POSIX error in case of failure.</dd>
  581. </dl>
  582. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  583. <p><!-- begin return value -->YES if the directory was successfully created.
  584. <!-- end return value --></p>
  585. <h5 class="tight">
  586. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  587. </h5>
  588. <p><!-- begin discussion -->This should create and open the file at the same time. The
  589. attributes may contain keys similar to setAttributes:.
  590. <!-- end discussion --></p>
  591. <p></p>
  592. <hr>
  593. <!-- 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">
  594. <h3><a name="moveItemAtPath:toPath:error:">moveItemAtPath:toPath:error: </a></h3>
  595. </td></tr></table>
  596. <hr>
  597. <p><!-- begin abstract -->Moves or renames an item.
  598. <!-- end abstract --></p>
  599. <p></p>
  600. <b>See Also:</b><blockquote><dl>
  601. <dt>
  602. <!-- 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 -->
  603. </dt>
  604. <dd></dd>
  605. </dl></blockquote>
  606. <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>
  607. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  608. <dl>
  609. <dt><code>source </code></dt>
  610. <dd>The source file or directory.</dd>
  611. <dt><code>destination </code></dt>
  612. <dd>The destination file or directory.</dd>
  613. <dt><code>error </code></dt>
  614. <dd>Should be filled with a POSIX error in case of failure.</dd>
  615. </dl>
  616. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  617. <p><!-- begin return value -->YES if the move was successful.
  618. <!-- end return value --></p>
  619. <h5 class="tight">
  620. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  621. </h5>
  622. <p><!-- begin discussion -->Move, also known as rename, is one of the more difficult file
  623. system methods to implement properly. Care should be taken to handle all
  624. error conditions and return proper POSIX error codes.
  625. <!-- end discussion --></p>
  626. <p></p>
  627. <hr>
  628. <!-- 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">
  629. <h3><a name="removeDirectoryAtPath:error:">removeDirectoryAtPath:error: </a></h3>
  630. </td></tr></table>
  631. <hr>
  632. <p><!-- begin abstract -->Remove the directory at the given path.
  633. <!-- end abstract --></p>
  634. <p></p>
  635. <b>See Also:</b><blockquote><dl>
  636. <dt>
  637. <!-- 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 -->
  638. </dt>
  639. <dd></dd>
  640. </dl></blockquote>
  641. <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>
  642. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  643. <dl>
  644. <dt><code>path </code></dt>
  645. <dd>The directory to remove.</dd>
  646. <dt><code>error </code></dt>
  647. <dd>Should be filled with a POSIX error in case of failure.</dd>
  648. </dl>
  649. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  650. <p><!-- begin return value -->YES if the directory was successfully removed.
  651. <!-- end return value --></p>
  652. <h5 class="tight">
  653. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  654. </h5>
  655. <p><!-- begin discussion -->Unlike NSFileManager, this should not recursively remove
  656. subdirectories. If this method is not implemented, then removeItemAtPath
  657. will be called even for directories.
  658. <!-- end discussion --></p>
  659. <p></p>
  660. <hr>
  661. <!-- 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">
  662. <h3><a name="removeItemAtPath:error:">removeItemAtPath:error: </a></h3>
  663. </td></tr></table>
  664. <hr>
  665. <p><!-- begin abstract -->Removes the item at the given path.
  666. <!-- end abstract --></p>
  667. <p></p>
  668. <b>See Also:</b><blockquote><dl>
  669. <dt>
  670. <!-- 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 -->
  671. </dt>
  672. <dd></dd>
  673. </dl></blockquote>
  674. <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>
  675. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  676. <dl>
  677. <dt><code>path </code></dt>
  678. <dd>The path to the item to remove.</dd>
  679. <dt><code>error </code></dt>
  680. <dd>Should be filled with a POSIX error in case of failure.</dd>
  681. </dl>
  682. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  683. <p><!-- begin return value -->YES if the item was successfully removed.
  684. <!-- end return value --></p>
  685. <h5 class="tight">
  686. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  687. </h5>
  688. <p><!-- begin discussion -->This should not recursively remove subdirectories. If
  689. removeDirectoryAtPath is implemented, then that will be called instead of
  690. this selector if the item is a directory.
  691. <!-- end discussion --></p>
  692. <p></p>
  693. <hr>
  694. <!-- 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">
  695. <h3><a name="linkItemAtPath:toPath:error:">linkItemAtPath:toPath:error:</a></h3>
  696. </td></tr></table>
  697. <hr>
  698. <p><!-- begin abstract -->Creates a hard link.
  699. <!-- end abstract --></p>
  700. <p></p>
  701. <b>See Also:</b><blockquote><dl>
  702. <dt>
  703. <!-- 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 -->
  704. </dt>
  705. <dd></dd>
  706. </dl></blockquote>
  707. <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>
  708. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  709. <dl>
  710. <dt><code>path </code></dt>
  711. <dd>The path for the created hard link.</dd>
  712. <dt><code>otherPath </code></dt>
  713. <dd>The path that is the target of the created hard link.</dd>
  714. <dt><code>error </code></dt>
  715. <dd>Should be filled with a POSIX error in case of failure.</dd>
  716. </dl>
  717. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  718. <p><!-- begin return value -->YES if the hard link was successfully created.
  719. <!-- end return value --></p>
  720. <p></p>
  721. <hr>
  722. <!-- 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">
  723. <h3><a name="createSymbolicLinkAtPath:withDestinationPath:error:">createSymbolicLinkAtPath:withDestinationPath:error:</a></h3>
  724. </td></tr></table>
  725. <hr>
  726. <p><!-- begin abstract -->Creates a symbolic link.
  727. <!-- end abstract --></p>
  728. <p></p>
  729. <b>See Also:</b><blockquote><dl>
  730. <dt>
  731. <!-- 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 -->
  732. </dt>
  733. <dd></dd>
  734. </dl></blockquote>
  735. <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>
  736. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  737. <dl>
  738. <dt><code>path </code></dt>
  739. <dd>The path for the created symbolic link.</dd>
  740. <dt><code>otherPath </code></dt>
  741. <dd>The path that is the target of the symbolic link.</dd>
  742. <dt><code>error </code></dt>
  743. <dd>Should be filled with a POSIX error in case of failure.</dd>
  744. </dl>
  745. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  746. <p><!-- begin return value -->YES if the symbolic link was successfully created.
  747. <!-- end return value --></p>
  748. <p></p>
  749. <hr>
  750. <!-- 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">
  751. <h3><a name="destinationOfSymbolicLinkAtPath:error:">destinationOfSymbolicLinkAtPath:error:</a></h3>
  752. </td></tr></table>
  753. <hr>
  754. <p><!-- begin abstract -->Reads the destination of a symbolic link.
  755. <!-- end abstract --></p>
  756. <p></p>
  757. <b>See Also:</b><blockquote><dl>
  758. <dt>
  759. <!-- 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 -->
  760. </dt>
  761. <dd></dd>
  762. </dl></blockquote>
  763. <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>
  764. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  765. <dl>
  766. <dt><code>path </code></dt>
  767. <dd>The path to the specified symlink.</dd>
  768. <dt><code>error </code></dt>
  769. <dd>Should be filled with a POSIX error in case of failure.</dd>
  770. </dl>
  771. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  772. <p><!-- begin return value -->The destination path of the symbolic link or nil on error.
  773. <!-- end return value --></p>
  774. <p></p>
  775. <hr>
  776. <!-- 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">
  777. <h3><a name="extendedAttributesOfItemAtPath:error:">extendedAttributesOfItemAtPath:error: </a></h3>
  778. </td></tr></table>
  779. <hr>
  780. <p><!-- begin abstract -->Returns the names of the extended attributes at the specified path.
  781. <!-- end abstract --></p>
  782. <p></p>
  783. <b>See Also:</b><blockquote><dl>
  784. <dt>
  785. <!-- 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 -->
  786. </dt>
  787. <dd></dd>
  788. </dl></blockquote>
  789. <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>
  790. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  791. <dl>
  792. <dt><code>path </code></dt>
  793. <dd>The path to the specified file.</dd>
  794. <dt><code>error </code></dt>
  795. <dd>Should be filled with a POSIX error in case of failure.</dd>
  796. </dl>
  797. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  798. <p><!-- begin return value -->An NSArray of extended attribute names or nil on error.
  799. <!-- end return value --></p>
  800. <h5 class="tight">
  801. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  802. </h5>
  803. <p><!-- begin discussion -->If there are no extended attributes at this path, then return an
  804. empty array. Return nil only on error.
  805. <!-- end discussion --></p>
  806. <p></p>
  807. <hr>
  808. <!-- 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">
  809. <h3><a name="valueOfExtendedAttribute:ofItemAtPath:position:error:">valueOfExtendedAttribute:ofItemAtPath:position:error:</a></h3>
  810. </td></tr></table>
  811. <hr>
  812. <p><!-- begin abstract -->Returns the contents of the extended attribute at the specified path.
  813. <!-- end abstract --></p>
  814. <p></p>
  815. <b>See Also:</b><blockquote><dl>
  816. <dt>
  817. <!-- 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 -->
  818. </dt>
  819. <dd></dd>
  820. </dl></blockquote>
  821. <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>
  822. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  823. <dl>
  824. <dt><code>name </code></dt>
  825. <dd>The name of the extended attribute.</dd>
  826. <dt><code>path </code></dt>
  827. <dd>The path to the specified file.</dd>
  828. <dt><code>position </code></dt>
  829. <dd>The offset within the attribute to read from.</dd>
  830. <dt><code>error </code></dt>
  831. <dd>Should be filled with a POSIX error in case of failure.</dd>
  832. </dl>
  833. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  834. <p><!-- begin return value -->The data corresponding to the attribute or nil on error.
  835. <!-- end return value --></p>
  836. <p></p>
  837. <hr>
  838. <!-- 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">
  839. <h3><a name="setExtendedAttribute:ofItemAtPath:value:position:options:error:">setExtendedAttribute:ofItemAtPath:value:position:options:error:</a></h3>
  840. </td></tr></table>
  841. <hr>
  842. <p><!-- begin abstract -->Writes the contents of the extended attribute at the specified path.
  843. <!-- end abstract --></p>
  844. <p></p>
  845. <b>See Also:</b><blockquote><dl>
  846. <dt>
  847. <!-- 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 -->
  848. </dt>
  849. <dd></dd>
  850. </dl></blockquote>
  851. <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>
  852. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  853. <dl>
  854. <dt><code>name </code></dt>
  855. <dd>The name of the extended attribute.</dd>
  856. <dt><code>path </code></dt>
  857. <dd>The path to the specified file.</dd>
  858. <dt><code>value </code></dt>
  859. <dd>The data to write.</dd>
  860. <dt><code>position </code></dt>
  861. <dd>The offset within the attribute to write to</dd>
  862. <dt><code>options </code></dt>
  863. <dd>Options (see setxattr man page).</dd>
  864. <dt><code>error </code></dt>
  865. <dd>Should be filled with a POSIX error in case of failure.</dd>
  866. </dl>
  867. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  868. <p><!-- begin return value -->YES if the attribute was successfully written.
  869. <!-- end return value --></p>
  870. <p></p>
  871. <hr>
  872. <!-- 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">
  873. <h3><a name="removeExtendedAttribute:ofItemAtPath:error:">removeExtendedAttribute:ofItemAtPath:error:</a></h3>
  874. </td></tr></table>
  875. <hr>
  876. <p><!-- begin abstract -->Removes the extended attribute at the specified path.
  877. <!-- end abstract --></p>
  878. <p></p>
  879. <b>See Also:</b><blockquote><dl>
  880. <dt>
  881. <!-- 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 -->
  882. </dt>
  883. <dd></dd>
  884. </dl></blockquote>
  885. <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>
  886. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  887. <dl>
  888. <dt><code>name </code></dt>
  889. <dd>The name of the extended attribute.</dd>
  890. <dt><code>path </code></dt>
  891. <dd>The path to the specified file.</dd>
  892. <dt><code>error </code></dt>
  893. <dd>Should be filled with a POSIX error in case of failure.</dd>
  894. </dl>
  895. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  896. <p><!-- begin return value -->YES if the attribute was successfully removed.
  897. <!-- end return value --></p>
  898. <p></p>
  899. <p>Last Updated: Monday, November 17, 2008
  900. </p>
  901. </body>
  902. </html>