skpm / fs

Drop-in replacement for the fs NodeJS package
MIT License
27 stars 11 forks source link

Adds missing argument writeToFile_atomically_encoding_error #9

Closed buames closed 6 years ago

buames commented 6 years ago

Hi!

With writeFileSync, if you were to use any encoding option other than utf8, you get <NSException> ObjC method writeToFile:atomically:encoding:error: requires 4 arguments, but JavaScript passed 3 arguments.

This adds the missing argument.

Also removed an unused var from readFileSync.