Minor fixes before testing
This commit is contained in:
parent
1d452d767d
commit
cc865a6b29
@ -230,14 +230,14 @@ TiddlyWiki >> downloadHTML [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> downloadLink: v into: subfolder [
|
TiddlyWiki >> downloadLink: v into: subfolder [
|
||||||
| filePath fileName semiFilePath |
|
| filePath fileName |
|
||||||
fileName := v asUrl segments last.
|
fileName := v asUrl segments last.
|
||||||
filePath := subfolder / fileName.
|
filePath := subfolder / fileName.
|
||||||
GtSubprocessWithInMemoryOutput new
|
GtSubprocessWithInMemoryOutput new
|
||||||
shellCommand: 'curl -L -# ' , v , ' -o ' , filePath;
|
shellCommand: 'curl -L -# ' , v asString, ' -o ' , filePath fullName;
|
||||||
runAndWait;
|
runAndWait;
|
||||||
stdout.
|
stdout.
|
||||||
^ semiFilePath
|
^ filePath
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
@ -568,6 +568,7 @@ TiddlyWiki >> isInTiddlyHost [
|
|||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> jsonCache [
|
TiddlyWiki >> jsonCache [
|
||||||
self downloadLink: self tiddlersJSONUrl into: self folder.
|
self downloadLink: self tiddlersJSONUrl into: self folder.
|
||||||
|
^ (self folder / 'tiddlers.json') contents
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user