Foundation.NSFileManager: Method Members

The methods of Foundation.NSFileManager are listed below. For a list of all members, see the NSFileManager Members list.

See Also: Inherited members from Foundation.NSObject

Public Methods

ChangeCurrentDirectory(string) : bool
Attepts to switch the current directory to the specified path, returns success or failure.
ComponentsToDisplay(string) : string[]
Contents(string) : NSData
ContentsEqual(string, string) : bool
Whether the files at the two specified paths have the same contents.
Copy(NSUrl, NSUrl, out NSError) : bool
Attempts to copy the data from the srcUrl to the dstUrl, returning success or failure and encoding error (if any) in error.
Copy(string, string, out NSError) : bool
Creates a copy of this object, allocating memory from the specified zone or from the default zone if the argument is null.
CreateDirectory(string, bool, NSFileAttributes) : bool
Documentation for this section has not yet been entered.
CreateDirectory(NSUrl, bool, NSDictionary, out NSError) : bool
Attemps to create the specified directory, returning success or failure.
CreateDirectory(string, bool, NSDictionary, out NSError) : bool
Documentation for this section has not yet been entered.
CreateDirectory(string, bool, NSFileAttributes, out NSError) : bool
Documentation for this section has not yet been entered.
CreateFile(string, NSData, NSDictionary) : bool
Attempts to crate the specified file, with the specified data and attributes, returning success or failure.
CreateFile(string, NSData, NSFileAttributes) : bool
Documentation for this section has not yet been entered.
CreateSymbolicLink(NSUrl, NSUrl, out NSError) : bool
Attempts to create the specified symbolic link, returning success or failure, and encoding error (if any) in error.
CreateSymbolicLink(string, string, out NSError) : bool
Documentation for this section has not yet been entered.
DisplayName(string) : string
The display name for the file at the specified path.
EvictUbiquitous(NSUrl, out NSError) : bool
Removes the local copy of the specified cloud-based item, returning success or failure.
FileExists(string) : bool
Whether the specified file exists.
FileExists(string, ref bool) : bool
Documentation for this section has not yet been entered.
GetAttributes(string) : NSFileAttributes
Documentation for this section has not yet been entered.
GetAttributes(string, out NSError) : NSFileAttributes
Documentation for this section has not yet been entered.
GetContainerUrl(string) : NSUrl
The container directory for the specified security group ientifier.
GetCurrentDirectory() : string
The program's current directory.
GetDirectoryContent(string, out NSError) : string[]
GetDirectoryContent(NSUrl, NSArray, NSDirectoryEnumerationOptions, out NSError) : NSUrl[]
Documentation for this section has not yet been entered.
GetDirectoryContentRecursive(string, out NSError) : string[]
GetEnumerator(string) : NSDirectoryEnumerator
GetEnumerator(NSUrl, NSString[], NSDirectoryEnumerationOptions, NSEnumerateErrorHandler) : NSDirectoryEnumerator
Documentation for this section has not yet been entered.
GetFileSystemAttributes(string) : NSFileSystemAttributes
Returns the file system attributes for a given volume.
GetFileSystemAttributes(string, out NSError) : NSFileSystemAttributes
Returns the file system attributes for a given volume.
GetMountedVolumes(NSArray, NSVolumeEnumerationOptions) : NSUrl[]
URLs of the mounted volumes on the device.
GetRelationship(out NSUrlRelationship, NSUrl, NSUrl, out NSError) : bool
Documentation for this section has not yet been entered.
GetRelationship(out NSUrlRelationship, NSSearchPathDirectory, NSSearchPathDomain, NSUrl, out NSError) : bool
Documentation for this section has not yet been entered.
static
GetSkipBackupAttribute(string) : bool
Returns the status of the SkipBackup to iCloud attribute is set on the file.
static
GetSkipBackupAttribute(string, out NSError) : bool
Returns the status of the SkipBackup to iCloud attribute is set on the file.
GetSymbolicLinkDestination(string, out NSError) : string
The path to which the symbolic link points.
GetUrl(NSSearchPathDirectory, NSSearchPathDomain, NSUrl, bool, out NSError) : NSUrl
Locates and optionally creates the specified common directory in a domain.
GetUrlForPublishingUbiquitousItem(NSUrl, out NSDate, out NSError) : NSUrl
A URL that can be shared to provide access to a cloud-based item.
GetUrlForUbiquityContainer(string) : NSUrl
The URL for the ubiquity (iCloud) container associated with the specified containerIdentifier.
GetUrls(NSSearchPathDirectory, NSSearchPathDomain) : NSUrl[]
Returns a list of commonly used directories matching the type of directory and the domain to search for.
IsDeletableFile(string) : bool
Whether the file at the specified path can be deleted.
IsExecutableFile(string) : bool
Whether the file at the specified path is executable.
IsReadableFile(string) : bool
Whether the file at the specified path is readable.
IsUbiquitous(NSUrl) : bool
Whether the specified item is targeted for storage on iCloud.
IsWritableFile(string) : bool
Whether the file at the specified path is writable.
Link(NSUrl, NSUrl, out NSError) : bool
Attempts to create a hard link between the specified NSUrls, returning success or failure and populating the error parameter.
Link(string, string, out NSError) : bool
Documentation for this section has not yet been entered.
Move(NSUrl, NSUrl, out NSError) : bool
Synchronously attempts to move the file from srcUrl to dstUrl, returning success or failure and setting the error parameter.
Move(string, string, out NSError) : bool
Documentation for this section has not yet been entered.
Remove(NSUrl, out NSError) : bool
Attempts to remove the item at the specified url, returning success or failure and setting the error parameter.
Remove(string, out NSError) : bool
Documentation for this section has not yet been entered.
Replace(NSUrl, NSUrl, string, NSFileManagerItemReplacementOptions, out NSUrl, out NSError) : bool
Attempts to replace the specified originalItem with the newItem, in a manner that does not lose data, returning success or faiure and setting the error parameter.
SetAttributes(NSFileAttributes, string) : bool
Documentation for this section has not yet been entered.
SetAttributes(NSDictionary, string, out NSError) : bool
Attempts to set the attributes of the file at the specified path, returning success or failure and setting the error parameter.
SetAttributes(NSFileAttributes, string, out NSError) : bool
Documentation for this section has not yet been entered.
static
SetSkipBackupAttribute(string, bool) : NSError
SetUbiquitous(bool, NSUrl, NSUrl, out NSError) : bool
Attempts to set whether the item at the specified url should be stored in iCloud, returning success or failure and setting the error parameter.
StartDownloadingUbiquitous(NSUrl, out NSError) : bool
Attempts to start downloading the specified item from iCloud, returning success or failure and setting the error parameter.
Subpaths(string) : string[]
An array of strings representing the paths to all items at the specified path.

Protected Methods

override
Dispose(bool)
Releases the resources used by the NSFileManager object.