2000-03-05 17:39:33 +00:00
|
|
|
<html><head>
|
|
|
|
<title>NSFileManager</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a href="NSFileHandle.html">[Previous]</a>
|
2000-04-10 05:32:04 +00:00
|
|
|
<a href="Base.html">[Up]</a>
|
2000-03-05 17:39:33 +00:00
|
|
|
<a href="NSFormatter.html">[Next]</a>
|
|
|
|
<h1>NSFileManager</h1>
|
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt><a href="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
|
|
|
|
<dd>
|
|
|
|
</dl>
|
|
|
|
<p>Version: 0.1</p>
|
|
|
|
<p>Date: 28 February, 2000</p>
|
|
|
|
<h2><a name="cont-0">NSFileManager</a></h2>
|
|
|
|
<h2><a name="NSFileManager">NSFileManager</a></h2>
|
|
|
|
<p><b>Declared in:</b> Foundation/NSFileManager.h</p>
|
|
|
|
<p><b>Inherits from:</b> NSObject</p>
|
|
|
|
<p><b>Conforms to:</b> NSObject
|
|
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="NSFileManager.html#method-0">+defaultManager</a>
|
|
|
|
<li><a href="NSFileManager.html#method-1">-changeCurrentDirectoryPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-2">-changeFileAttributes:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-3">-contentsAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-4">-contentsEqualAtPath:andPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-5">-copyPath:toPath:handler:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-6">-createDirectoryAtPath:attributes:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-7">-createFileAtPath:contents:attributes:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-8">-createSymbolicLinkAtPath:pathContent:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-9">-currentDirectoryPath</a>
|
|
|
|
<li><a href="NSFileManager.html#method-10">-directoryContentsAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-11">-enumeratorAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-12">-fileAttributesAtPath:traverseLink:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-13">-fileExistsAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-14">-fileExistsAtPath:isDirectory:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-27">-fileManager:shouldProceedAfterError:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-28">-fileManager:willProcessPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-15">-fileSystemAttributesAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-16">-fileSystemRepresentationWithPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-17">-isDeletableFileAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-18">-isExecutableFileAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-19">-isReadableFileAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-20">-isWritableFileAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-21">-linkPath:toPath:handler:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-22">-movePath:toPath:handler:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-23">-pathContentOfSymbolicLinkAtPath:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-24">-removeFileAtPath:handler:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-25">-stringWithFileSystemRepresentation:</a>
|
|
|
|
<li><a href="NSFileManager.html#method-26">-subpathsAtPath:</a>
|
|
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-0">defaultManager</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
+ (NSFileManager*) <b>defaultManager</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-1">changeCurrentDirectoryPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>changeCurrentDirectoryPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-2">changeFileAttributes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>changeFileAttributes:</b> (NSDictionary*)attributes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-3">contentsAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSData*) <b>contentsAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-4">contentsEqualAtPath:andPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>contentsEqualAtPath:</b> (NSString*)path1 <b>andPath:</b> (NSString*)path2;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-5">copyPath:toPath:handler:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>copyPath:</b> (NSString*)source <b>toPath:</b> (NSString*)destination <b>handler:</b> handler;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-6">createDirectoryAtPath:attributes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>createDirectoryAtPath:</b> (NSString*)path <b>attributes:</b> (NSDictionary*)attributes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-7">createFileAtPath:contents:attributes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>createFileAtPath:</b> (NSString*)path <b>contents:</b> (NSData*)contents <b>attributes:</b> (NSDictionary*)attributes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-8">createSymbolicLinkAtPath:pathContent:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>createSymbolicLinkAtPath:</b> (NSString*)path <b>pathContent:</b> (NSString*)otherPath;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-9">currentDirectoryPath</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSString*) <b>currentDirectoryPath</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-10">directoryContentsAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSArray*) <b>directoryContentsAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-11">enumeratorAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSDirectoryEnumerator*) <b>enumeratorAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-12">fileAttributesAtPath:traverseLink:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSDictionary*) <b>fileAttributesAtPath:</b> (NSString*)path <b>traverseLink:</b> (BOOL)flag;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-13">fileExistsAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>fileExistsAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-14">fileExistsAtPath:isDirectory:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>fileExistsAtPath:</b> (NSString*)path <b>isDirectory:</b> (BOOL*)isDirectory;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-15">fileSystemAttributesAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSDictionary*) <b>fileSystemAttributesAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-16">fileSystemRepresentationWithPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (const char*) <b>fileSystemRepresentationWithPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-17">isDeletableFileAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>isDeletableFileAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-18">isExecutableFileAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>isExecutableFileAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-19">isReadableFileAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>isReadableFileAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-20">isWritableFileAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>isWritableFileAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-21">linkPath:toPath:handler:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>linkPath:</b> (NSString*)source <b>toPath:</b> (NSString*)destination <b>handler:</b> handler;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-22">movePath:toPath:handler:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>movePath:</b> (NSString*)source <b>toPath:</b> (NSString*)destination <b>handler:</b> handler;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-23">pathContentOfSymbolicLinkAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSString*) <b>pathContentOfSymbolicLinkAtPath:</b> (NSString*)cStringPath;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-24">removeFileAtPath:handler:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>removeFileAtPath:</b> (NSString*)path <b>handler:</b> handler;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-25">stringWithFileSystemRepresentation:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSString*) <b>stringWithFileSystemRepresentation:</b> (const char*)string;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-26">subpathsAtPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (NSArray*) <b>subpathsAtPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-27">fileManager:shouldProceedAfterError:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>fileManager:</b> (NSFileManager*)manager <b>shouldProceedAfterError:</b> (NSDictionary*)errorInfo;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-28">fileManager:willProcessPath:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (BOOL) <b>fileManager:</b> (NSFileManager*)manager <b>willProcessPath:</b> (NSString*)path;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|