Write the contents of the file with fwrite instead of g_file_set_contents. Since g_file_set_contents removes the file and re-creates it, all permissions get lost during this operation. Using fwrite preserves all the permissions.
Made changes according to review comments. Added a check if the FILE* is valid to prevent errors (there was a failing unit test).
Mac implementation of stat.realPath.
Fix win and linux compile errors. Real path still isn't implemented on these platforms...
Merge remote-tracking branch 'origin/master' into glenn/real-path
Windows implementation of realPath
Merge branch 'glenn/real-path' of https://github.com/adobe/brackets-shell into glenn/real-path
Code cleanup
Merge remote-tracking branch 'origin/master' into glenn/real-path
Add comments to gtk impl.
Fix stat of '/'.
Merge branch 'master' into glenn/real-path
Respond to review comments. Use a larger buffer size, handle UNC paths, and check for errors.
convert error code for stream i/o on replace file call
Merge pull request #366 from adobe/irichter/fix-5533

Write the contents of the file with fwrite instead of g_file_set_contents
remove unnecessary include
Merge pull request #388 from adobe/jasonsanjose/fix-open-dialog

Remove unnecessary include
Merge pull request #383 from adobe/glenn/real-path

Add 'realPath' property to stat value
Merge branch 'master' into couzteau/write-png