Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let downloadsDirectory = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask).first!
- for i in 1 ... 100000 {
- let myDir = downloadsDirectory.appendingPathComponent("test",
- isDirectory: true) //no memory grow
- //let myDir = downloadsDirectory.appendingPathComponent("test")
- //memory grow!!!
- }
Add Comment
Please, Sign In to add comment