Skip to content

Commit

Permalink
use GRPlatform current pathSeparator in the filename generation for t…
Browse files Browse the repository at this point in the history
…emporary files on gemstone
  • Loading branch information
jbrichau committed Feb 4, 2024
1 parent e1a14c9 commit 14e6afb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ files
newTemporaryFileNamed: aName

| fileName |
fileName := '/tmp/', aName.
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

0 comments on commit 14e6afb

Please sign in to comment.