Skip to content

Commit

Permalink
README: Update code sample for 4.0+ API
Browse files Browse the repository at this point in the history
Update the "Create, write and delete files and folders" code sample to match the latest Files API.
  • Loading branch information
JohnSundell authored Jan 4, 2020
1 parent 941052d commit 635e51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Create, write and delete files and folders:
```swift
let folder = try Folder(path: "/users/john/folder")
let file = try folder.createFile(named: "file.json")
try file.write(string: "{\"hello\": \"world\"}")
try file.write("{\"hello\": \"world\"}")
try file.delete()
try folder.delete()
```
Expand Down

0 comments on commit 635e51b

Please sign in to comment.