Foundation.NSFileManager Members

The members of Foundation.NSFileManager are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
AppendOnlyNSString. Represents the value associated with the constant NSFileAppendOnly
[read-only]
static
BusyNSString. Represents the value associated with the constant NSFileBusy
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
CreationDateNSString. Represents the value associated with the constant NSFileCreationDate
CurrentDirectorystring. Documentation for this section has not yet been entered.
[read-only]
static
DefaultManagerNSFileManager. Static reference to the singleton NSFileManager.
DelegateINSFileManagerDelegate. An instance of the Foundation.NSFileManagerDelegate model class which acts as the class delegate.
[read-only]
static
DeviceIdentifierNSString. Represents the value associated with the constant NSFileDeviceIdentifier
[read-only]
static
ExtensionHiddenNSString. Represents the value associated with the constant NSFileExtensionHidden
[read-only]
static
FileProtectionCompleteNSString. Represents the value associated with the constant NSFileProtectionComplete
[read-only]
static
FileProtectionCompleteUnlessOpenNSString. Represents the value associated with the constant NSFileProtectionCompleteUnlessOpen
[read-only]
static
FileProtectionCompleteUntilFirstUserAuthenticationNSString. Represents the value associated with the constant NSFileProtectionCompleteUntilFirstUserAuthentication
[read-only]
static
FileProtectionKeyNSString. Represents the value associated with the constant NSFileProtectionKey
[read-only]
static
FileProtectionNoneNSString. Represents the value associated with the constant NSFileProtectionNone
[read-only]
static
GroupOwnerAccountIDNSString. Represents the value associated with the constant NSFileGroupOwnerAccountID
[read-only]
static
GroupOwnerAccountNameNSString. Represents the value associated with the constant NSFileGroupOwnerAccountName
[read-only]
static
HfsCreatorCodeNSString. Represents the value associated with the constant NSFileHFSCreatorCode
[read-only]
static
HfsTypeCodeNSString. Represents the value associated with the constant NSFileHFSTypeCode
[read-only]
static
ImmutableNSString. Represents the value associated with the constant NSFileImmutable
[read-only]
static
ModificationDateNSString. Represents the value associated with the constant NSFileModificationDate
[read-only]
static
NSFileTypeNSString. Represents the value associated with the constant NSFileType
[read-only]
static
OwnerAccountIDNSString. Represents the value associated with the constant NSFileOwnerAccountID
[read-only]
static
OwnerAccountNameNSString. Represents the value associated with the constant NSFileOwnerAccountName
[read-only]
static
PosixPermissionsNSString. Represents the value associated with the constant NSFilePosixPermissions
[read-only]
static
ReferenceCountNSString. Represents the value associated with the constant NSFileReferenceCount
[read-only]
static
SizeNSString. Represents the value associated with the constant NSFileSize
[read-only]
static
SystemFileNumberNSString. Represents the value associated with the constant NSFileSystemFileNumber
[read-only]
static
SystemFreeNodesNSString. Represents the value associated with the constant NSFileSystemFreeNodes
[read-only]
static
SystemFreeSizeNSString. Represents the value associated with the constant NSFileSystemFreeSize
[read-only]
static
SystemNodesNSString. Represents the value associated with the constant NSFileSystemNodes
[read-only]
static
SystemNumberNSString. Represents the value associated with the constant NSFileSystemNumber
[read-only]
static
SystemSizeNSString. Represents the value associated with the constant NSFileSystemSize
[read-only]
static
TypeBlockSpecialNSString. Represents the value associated with the constant NSFileTypeBlockSpecial
[read-only]
static
TypeCharacterSpecialNSString. Represents the value associated with the constant NSFileTypeCharacterSpecial
[read-only]
static
TypeDirectoryNSString. Represents the value associated with the constant NSFileTypeDirectory
[read-only]
static
TypeRegularNSString. Represents the value associated with the constant NSFileTypeRegular
[read-only]
static
TypeSocketNSString. Represents the value associated with the constant NSFileTypeSocket
[read-only]
static
TypeSymbolicLinkNSString. Represents the value associated with the constant NSFileTypeSymbolicLink
[read-only]
static
TypeUnknownNSString. Represents the value associated with the constant NSFileTypeUnknown
[read-only]
static
UbiquityIdentityDidChangeNotificationNSString. Notification constant for UbiquityIdentityDidChange
[read-only]
UbiquityIdentityTokenNSObject. An opaque token that represents the current iCloud identity.
WeakDelegateNSObject. An object that can respond to the delegate protocol for this type

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.