I'm storing image files in Documents directory for file caching.
var paths = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String
var path = paths.stringByAppendingPathComponent(imagePath!)
data.writeToFile(path, atomically: true)
What will happen when so many file stored? Is there auto swapping? Or can i detect it with code?
NOTE: I don't want to use tmp directory.