You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for Files! I wrote a script with it for a database validation task at work, had a very nice warm feeling being able to write Swift scripts 馃槃
I have a suggestion though, I was a bit surprised that Files's writes only override but no support for appending. Can we have file append? Similar to >> in bash.
I'm happy to create a PR, but I want to make sure if this sounds like a good addition. I'm thinking to add new methods func append(data: Data) throws and its string counterpart. Or, we could change write to func write(data: Data, shouldAppend: Bool = false) throws. I prefer the former though, let me know what you think.
The text was updated successfully, but these errors were encountered:
Thanks for
Files
! I wrote a script with it for a database validation task at work, had a very nice warm feeling being able to write Swift scripts 馃槃I have a suggestion though, I was a bit surprised that
Files
's writes only override but no support for appending. Can we have file append? Similar to>>
in bash.I'm happy to create a PR, but I want to make sure if this sounds like a good addition. I'm thinking to add new methods
func append(data: Data) throws
and its string counterpart. Or, we could change write tofunc write(data: Data, shouldAppend: Bool = false) throws
. I prefer the former though, let me know what you think.The text was updated successfully, but these errors were encountered: