Starting multiOS support for binary files.
This commit is contained in:
parent
5e4db00352
commit
a22005da27
@ -34,11 +34,8 @@ MiniDocs class >> altShiftRightCombo [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
MiniDocs class >> appFolder [
|
MiniDocs class >> appFolder [
|
||||||
| tempFolder userDataFolder |
|
| tempFolder |
|
||||||
userDataFolder := Smalltalk os isWindows
|
tempFolder := ExoRepo userDataFolder / 'Mutabit' / 'MiniDocs'.
|
||||||
ifTrue: [ FileLocator home / 'AppData' / 'Local' ]
|
|
||||||
ifFalse: [ FileLocator userData ].
|
|
||||||
tempFolder := userDataFolder / 'Mutabit' / 'MiniDocs'.
|
|
||||||
tempFolder exists ifFalse: [ tempFolder ensureCreateDirectory ].
|
tempFolder exists ifFalse: [ tempFolder ensureCreateDirectory ].
|
||||||
^ tempFolder
|
^ tempFolder
|
||||||
]
|
]
|
||||||
|
@ -22,7 +22,9 @@ Class {
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
NanoID class >> binaryFile [
|
NanoID class >> binaryFile [
|
||||||
^ MiniDocs appFolder / self scriptSourceCode basenameWithoutExtension
|
Smalltalk os isWindows
|
||||||
|
ifFalse: [ ^ MiniDocs appFolder / self scriptSourceCode basenameWithoutExtension ]
|
||||||
|
ifTrue: [ ^ ExoRepo userDataFolder / 'NanoId' / 'nanoid' ]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user