Skip to content

Add FileIO.writeFile

Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 17 Jul 02:18
562aca7
This patch was authored by @t-ae and released by @tanner0101.

Adds writeFile method to request's FileIO helper (#2418).

// Writes "hello" to /path/to/file.txt
// Returns a future indicating when the write has completed. 
req.fileio.writeFile(.init(string: "hello"), at: "/path/to/file.txt")