Skip to content

Commit

Permalink
Merge pull request #138 from theseion/file-utilities-for-streaming-up…
Browse files Browse the repository at this point in the history
…loads

File utilities for streaming uploads
  • Loading branch information
jbrichau authored Jun 6, 2022
2 parents ce61d53 + a248d08 commit 5ad8d0b
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
file library
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 subclassResponsibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
file library
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)."
^ FileLocator temp / UUID new asString
Original file line number Diff line number Diff line change
@@ -1 +1 @@
A WASqueakPlatform is the Squeak implementation of SeasidePlatformSupport, the Seaside class that provides functionality that can not be implemented in a platform independent way.
A GRPharoPlatform is the Pharo implementation of GRPlatform, the Grease class that provides functionality that can not be implemented in a platform independent way.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
file library
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)."
^ FileLocator temp / UUID new asString
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"commentStamp" : "pmm 6/1/2008 01:03",
"commentStamp" : "pmm 2/1/2014 13:28",
"super" : "GRPlatform",
"category" : "Grease-Pharo70-Core",
"classinstvars" : [ ],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
file library
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)."
^ FileLocator temp / UUID new asString
5 changes: 3 additions & 2 deletions repository/Grease-Squeak-Core.package/.filetree
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"noMethodMetaData" : true,
"separateMethodMetaAndSource" : false,
"useCypressPropertiesFile" : true }
"noMethodMetaData" : true,
"useCypressPropertiesFile" : true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
file library
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)."
^ FileDirectory default / UUID new asString
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"category" : "Grease-Squeak-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "GRSqueakPlatform",
"pools" : [
],
"super" : "GRPharoPlatform",
"type" : "normal" }
"category" : "Grease-Squeak-Core",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [ ],
"name" : "GRSqueakPlatform",
"type" : "normal"
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
{
"name" : "Object" }
"name" : "Object"
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
{
"name" : "SmallInteger" }
"name" : "SmallInteger"
}
3 changes: 1 addition & 2 deletions repository/Grease-Squeak-Core.package/properties.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{ }

0 comments on commit 5ad8d0b

Please sign in to comment.