I have a file and want to rename it.
// Create a FileManager instance
let fileManager = NSFileManager.defaultManager()
// Rename 'hello.swift' as 'goodbye.swift'
do {
try fileManager.moveItemAtPath("hello.swift", toPath: "goodbye.swift")
}
catch let error as NSError {
print("Ooops! Something went wrong: \(error)")
}