Skip to content

Commit

Permalink
temporary files should be binary and opened in append mode, otherwise…
Browse files Browse the repository at this point in the history
… we cannot stream write to them
  • Loading branch information
Johan Brichau committed Mar 10, 2024
1 parent c854800 commit 6925522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ newTemporaryFileNamed: aName
| fileName |
fileName := GRPlatform current pathSeparator,'tmp', GRPlatform current pathSeparator, aName.
(self fileExists: fileName) ifTrue: [ GRError new signal: 'A (temporary) file with name ', aName, ' already exists.' ].
^ (GsFile openWriteOnServer: fileName) pathName
^ (GsFile open: fileName mode: 'ab' onClient: false) pathName

0 comments on commit 6925522

Please sign in to comment.