Skip to content

Commit 7107d93

Browse files
committed
wip - updating to version 2.1.57
1 parent 07d6bf8 commit 7107d93

File tree

25 files changed

+64
-38
lines changed

25 files changed

+64
-38
lines changed

repository/Seaside-ElFinder-Commands.package/ElFinderListDirectoryCommand.class/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"classvars" : [
66
],
7-
"commentStamp" : "jupiter 01/03/2017 15:57",
7+
"commentStamp" : "",
88
"instvars" : [
99
],
1010
"name" : "ElFinderListDirectoryCommand",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
request handling
2+
findPath: filePath inTarget: elFinderLocalDirectory
3+
^ (filePath allButFirst substrings: '/')
4+
inject: elFinderLocalDirectory
5+
into: [ :directory :childName | directory childNamed: childName ]
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
request handling
22
handleRequest
3-
| name |
4-
(arguments at: 'target')
5-
ifNotNil: [ :targetHash | target := self find: targetHash ].
6-
name := arguments at: 'name'.
7-
target fileDirectory createDirectory: name.
8-
(payload at: 'added' ifAbsentPut: [ OrderedCollection new ])
9-
add: (target childNamed: name) " (arguments at: 'dirs')
10-
do: [ :directoryToCreate | target asFileDirectory forceNewDirectoryNamed: (arguments at: 'name') ]"
3+
| dirs hashes |
4+
target := self find: (arguments at: 'target'). "Single Directory Created"
5+
arguments
6+
at: 'name'
7+
ifPresent: [ :name |
8+
"Create Single Directory"
9+
target fileDirectory createDirectory: name.
10+
(payload at: 'added' ifAbsentPut: [ OrderedCollection new ])
11+
add: (target childNamed: name).
12+
^ self ].
13+
(dirs := arguments at: 'dirs')
14+
do: [ :directoryToCreate |
15+
"Multiple Directories Created - array of new directories path (requests at pre-flight of folder upload)"
16+
target fileDirectory forceNewDirectoryNamed: directoryToCreate allButFirst ]. "If multiple dirs were created, return their hashes"
17+
hashes := payload at: 'hashes' ifAbsentPut: [ GRSmallDictionary new ].
18+
dirs
19+
do: [ :dir | hashes at: dir put: (self findPath: dir inTarget: target) hash ]

repository/Seaside-ElFinder-Commands.package/ElFinderMakeDirectoryCommand.class/methodProperties.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"class" : {
33
"commands" : "jupiter 01/05/2017 01:04" },
44
"instance" : {
5-
"handleRequest" : "jupiter 01/05/2017 02:09",
5+
"findPath:inTarget:" : "jupiter 06/09/2020 16:07",
6+
"handleRequest" : "jupiter 06/10/2020 11:23",
67
"requestArguments" : "jupiter 01/05/2017 01:05" } }

repository/Seaside-ElFinder-Commands.package/ElFinderMakeDirectoryCommand.class/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"classvars" : [
66
],
7-
"commentStamp" : "jupiter 01/05/2017 01:03",
7+
"commentStamp" : "",
88
"instvars" : [
99
"target" ],
1010
"name" : "ElFinderMakeDirectoryCommand",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
accessing
22
apiVersion
3-
^ 2.1
3+
^ 2.157

repository/Seaside-ElFinder-Commands.package/ElFinderOpenCommand.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"class" : {
33
"commands" : "jupiter 12/09/2016 15:10" },
44
"instance" : {
5-
"apiVersion" : "jupiter 12/09/2016 19:06",
5+
"apiVersion" : "jupiter 06/09/2020 23:53",
66
"handleRequest" : "jupiter 01/02/2017 13:29",
77
"requestArguments" : "jupiter 12/09/2016 16:18" } }

repository/Seaside-ElFinder-Commands.package/ElFinderRemoveCommand.class/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"classvars" : [
66
],
7-
"commentStamp" : "jupiter 01/04/2017 21:10",
7+
"commentStamp" : "",
88
"instvars" : [
99
"target" ],
1010
"name" : "ElFinderRemoveCommand",

repository/Seaside-ElFinder-Commands.package/ElFinderUploadCommand.class/instance/uploadFile.chunk.id.range..st

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ uploadFile: file chunk: chunk id: chunkId range: range
2222
ifFalse: [ connector uploadTempDirectory oldFileNamed: fileName ].
2323
uploadFile
2424
binary;
25-
position: uploadFile fileSize;
25+
position: rangeStart;
2626
nextPutAllBytes: file rawContents;
27-
close.
28-
payload at: 'added' ifAbsentPut: [ OrderedCollection new ].
27+
close. "uploadFile fileSize"
2928
partNumber == partTotal
3029
ifTrue: [
3130
"Move into place"
32-
self moveFile: uploadFile toDirectory: target ]
31+
self moveFile: uploadFile toDirectory: target.
32+
(payload at: 'added' ifAbsentPut: [ OrderedCollection new ])
33+
add: (target childNamed: file fileName) ]

repository/Seaside-ElFinder-Commands.package/ElFinderUploadCommand.class/methodProperties.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"commands" : "jupiter 01/03/2017 16:35" },
44
"instance" : {
55
"addFile:" : "jupiter 01/03/2017 23:18",
6-
"handleRequest" : "jupiter 01/03/2017 23:09",
6+
"handleRequest" : "jupiter 06/10/2020 11:25",
77
"moveFile:toDirectory:" : "jupiter 01/05/2017 03:26",
88
"requestArguments" : "jupiter 01/03/2017 17:07",
9-
"uploadFile:chunk:id:range:" : "jupiter 01/05/2017 03:25",
10-
"uploadFile:index:" : "jupiter 01/04/2017 16:10" } }
9+
"uploadFile:chunk:id:range:" : "jupiter 06/10/2020 11:44",
10+
"uploadFile:index:" : "jupiter 06/09/2020 23:13" } }

0 commit comments

Comments
 (0)