X Tutup
Skip to content

Commit 4a73973

Browse files
committed
Add methods used for streaming to Pharo 100 platform
1 parent fd607d1 commit 4a73973

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
file library
2+
binaryWriteStreamFor: aFileReference do: aBlock
3+
"Open a binary writeStream for aFileReference and evaluate aBlock
4+
with the stream as argument.
5+
The stream will be closed after the block has completed."
6+
aFileReference binaryWriteStreamDo: aBlock
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
file library
2+
newTemporaryFileReference
3+
"Create a new temporary file in the systems temp directory
4+
and answer a reference to it.
5+
It is the users responsibility to delete or move the file,
6+
it will not be cleaned up automatically (unless the host system
7+
has a policy for it)."
8+
^ FileLocator temp / UUID new asString

0 commit comments

Comments
 (0)
X Tutup