Top "Nsfilemanager" questions

The NSFileManager class enables you to perform various generic file-system operations and insulates an application from the underlying file system.

How to check if a file exists in Documents folder?

I have an application with In-App Purchase, that when the user buy something, download one html file into the Documents …

ios iphone xcode webview nsfilemanager
Create a folder inside documents folder in iOS apps

I just want to create new folders in the documents folder of my iPhone app. Does anybody know how to …

iphone directory new-operator document nsfilemanager
Is there any way to see the file system on the iOS simulator?

Is there any way to browse the file system of a currently running or just killed iOS simulator? I'd settle …

iphone ios nsfilemanager
How to detect total available/free disk space on the iPhone/iPad device?

I'm looking for a better way to detect available/free disk space on the iPhone/iPad device programmatically. Currently I'm …

iphone ios ipad nsfilemanager diskspace
Save file in document directory in swift 3?

I am saving files in a document directory in swift 3 with this code: fileManager = FileManager.default // let documentDirectory = fileManager?.urls(…

ios swift nsfilemanager nsdocumentdirectory
How to create directory using Swift code (NSFileManager)

I'm having some trouble with converting Objective-C code to create a directory for Swift. Objective-C: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, …

ios objective-c swift nsfilemanager nsdocumentdirectory
Iterate through files in a folder and its subfolders using Swift's FileManager

I'm quite new to programming a Swift and I'm trying to iterate through the files in a folder. I took …

swift cocoa nsfilemanager
Delete files from directory inside Document directory?

I have created a Temp directory to store some files: //MARK: -create save delete from directory func createTempDirectoryToStoreFile(){ var error: …

ios swift nsfilemanager nsdocumentdirectory
How to overwrite a file with NSFileManager when copying?

I'm using this method to copy a file: [fileManager copyItemAtPath:sourcePath toPath:targetPath error:&error]; I want to overwrite …

iphone ios ipad filesystems nsfilemanager
Getting bundle file references / paths at app launch

Suppose I have an arbitrary set of files included in the Main App Bundle. I would like to fetch the …

ios ios5 nsfilemanager nsbundle