Skip to content

Commit

Permalink
Added support for newTemporaryFileReference in GemStone versions high…
Browse files Browse the repository at this point in the history
…er than 3.3
  • Loading branch information
Johan Brichau committed Feb 3, 2024
1 parent 933bc73 commit 788fa15
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*grease-gemstone330-core
newTemporaryFileReference
"Create a new temporary file in the systems temp directory
and answer a reference to it.
It is the users responsibility to delete or move the file,
it will not be cleaned up automatically (unless the host system
has a policy for it)."
^ self newTemporaryFileReferenceNamed: UUID new greaseString
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*grease-gemstone330-core
newTemporaryFileReferenceNamed: aName
"Create a new temporary file in the systems temp directory
and answer a reference to it.
It is the users responsibility to delete or move the file,
it will not be cleaned up automatically (unless the host system
has a policy for it)."
^ GsFile openWriteOnServer: '/tmp/', aName

0 comments on commit 788fa15

Please sign in to comment.