NSFileManager Class Reference
PDF
Overview
Tasks
Creating a File Manager
Moving an Item
Copying an Item
Removing an Item
Creating an Item
Linking an Item
Symbolic-Link Operations
Handling File Operations
Getting and Comparing File Contents
Discovering Directory Contents
Determining Access to Files
Getting and Setting Attributes
Getting Representations of File Paths
Managing the Delegate
Managing the Current Directory
Locating System Directories
Safely Replace a File
Class Methods
defaultManager
Instance Methods
attributesOfFileSystemForPath:error:
attributesOfItemAtPath:error:
changeCurrentDirectoryPath:
componentsToDisplayForPath:
contentsAtPath:
contentsEqualAtPath:andPath:
contentsOfDirectoryAtPath:error:
contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:
copyItemAtPath:toPath:error:
copyItemAtURL:toURL:error:
createDirectoryAtPath:withIntermediateDirectories:attributes:error:
createFileAtPath:contents:attributes:
createSymbolicLinkAtPath:withDestinationPath:error:
currentDirectoryPath
delegate
destinationOfSymbolicLinkAtPath:error:
displayNameAtPath:
enumeratorAtPath:
enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:
fileExistsAtPath:
fileExistsAtPath:isDirectory:
fileSystemRepresentationWithPath:
init
isDeletableFileAtPath:
isExecutableFileAtPath:
isReadableFileAtPath:
isWritableFileAtPath:
linkItemAtPath:toPath:error:
linkItemAtURL:toURL:error:
mountedVolumeURLsIncludingResourceValuesForKeys:options:
moveItemAtPath:toPath:error:
moveItemAtURL:toURL:error:
removeItemAtPath:error:
removeItemAtURL:error:
replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:
setAttributes:ofItemAtPath:error:
setDelegate:
stringWithFileSystemRepresentation:length:
subpathsAtPath:
subpathsOfDirectoryAtPath:error:
URLForDirectory:inDomain:appropriateForURL:create:error:
URLsForDirectory:inDomains:
Delegate Methods
fileManager:shouldCopyItemAtPath:toPath:
fileManager:shouldCopyItemAtURL:toURL:
fileManager:shouldLinkItemAtPath:toPath:
fileManager:shouldLinkItemAtURL:toURL:
fileManager:shouldMoveItemAtPath:toPath:
fileManager:shouldMoveItemAtURL:toURL:
fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:
fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:
fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:
fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:
fileManager:shouldProceedAfterError:movingItemAtPath:toPath:
fileManager:shouldProceedAfterError:movingItemAtURL:toURL:
fileManager:shouldProceedAfterError:removingItemAtPath:
fileManager:shouldProceedAfterError:removingItemAtURL:
fileManager:shouldRemoveItemAtPath:
fileManager:shouldRemoveItemAtURL:
Constants
Mounted Volume Enumeration Options
Directory Enumeration Options
NSFileManagerItemReplacementOptions
File Attribute Keys
NSFileType Attribute Values
File-System Attribute Keys
Resource Fork Support
Appendix A: Deprecated NSFileManager Methods
Deprecated in Mac OS X v10.5
changeFileAttributes:atPath:
copyPath:toPath:handler:
createDirectoryAtPath:attributes:
createSymbolicLinkAtPath:pathContent:
directoryContentsAtPath:
fileAttributesAtPath:traverseLink:
fileSystemAttributesAtPath:
linkPath:toPath:handler:
movePath:toPath:handler:
pathContentOfSymbolicLinkAtPath:
removeFileAtPath:handler:
fileManager:shouldProceedAfterError:
fileManager:willProcessPath:
Revision History
Index
COMPANION GUIDE
Low-Level File Management Programming Topics