X Tutup
Skip to content

Commit 0176ed2

Browse files
author
Johan Brichau
committed
added temporary file creation methods to older Pharo versions
1 parent 4d9ea9f commit 0176ed2

File tree

8 files changed

+28
-0
lines changed

8 files changed

+28
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
files
2+
newTemporaryFile
3+
4+
^ self newTemporaryFileNamed: UUID new greaseString
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
files
2+
newTemporaryFileNamed: aName
3+
4+
^ (FileLocator temp / aName) pathString

repository/Grease-Pharo70-Core.package/GRPharoPlatform.class/instance/newTemporaryFileReference.st

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ newTemporaryFileReference
55
It is the users responsibility to delete or move the file,
66
it will not be cleaned up automatically (unless the host system
77
has a policy for it)."
8+
self
9+
greaseDeprecatedApi: 'GRPlatform>>newTemporaryFileReference'
10+
details: 'Use newTemporaryFile'.
811
^ self newTemporaryFileReferenceNamed: UUID new asString

repository/Grease-Pharo70-Core.package/GRPharoPlatform.class/instance/newTemporaryFileReferenceNamed..st

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ newTemporaryFileReferenceNamed: aName
55
It is the users responsibility to delete or move the file,
66
it will not be cleaned up automatically (unless the host system
77
has a policy for it)."
8+
self
9+
greaseDeprecatedApi: 'GRPlatform>>newTemporaryFileReferenceNamed:'
10+
details: 'Use newTemporaryFileNamed:'.
811
^ FileLocator temp / aName
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
files
2+
newTemporaryFile
3+
4+
^ self newTemporaryFileNamed: UUID new greaseString
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
files
2+
newTemporaryFileNamed: aName
3+
4+
^ (FileLocator temp / aName) pathString

repository/Grease-Pharo90-Core.package/GRPharoPlatform.class/instance/newTemporaryFileReference.st

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ newTemporaryFileReference
55
It is the users responsibility to delete or move the file,
66
it will not be cleaned up automatically (unless the host system
77
has a policy for it)."
8+
self
9+
greaseDeprecatedApi: 'GRPlatform>>newTemporaryFileReference'
10+
details: 'Use newTemporaryFile'.
811
^ self newTemporaryFileReferenceNamed: UUID new asString

repository/Grease-Pharo90-Core.package/GRPharoPlatform.class/instance/newTemporaryFileReferenceNamed..st

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ newTemporaryFileReferenceNamed: aName
55
It is the users responsibility to delete or move the file,
66
it will not be cleaned up automatically (unless the host system
77
has a policy for it)."
8+
self
9+
greaseDeprecatedApi: 'GRPlatform>>newTemporaryFileReferenceNamed:'
10+
details: 'Use newTemporaryFileNamed:'.
811
^ FileLocator temp / aName

0 commit comments

Comments
 (0)
X Tutup