Fixing data folder for Windows.
This commit is contained in:
parent
77404b9b31
commit
06b18c4e50
@ -6,8 +6,11 @@ Class {
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
MiniDocs class >> appFolder [
|
MiniDocs class >> appFolder [
|
||||||
| tempFolder |
|
| tempFolder userDataFolder |
|
||||||
tempFolder := FileLocator userData / 'Mutabit' / 'MiniDocs'.
|
userDataFolder := Smalltalk os isWindows
|
||||||
|
ifTrue: [ FileLocator home / 'AppData' / 'Local' ]
|
||||||
|
ifFalse: [ FileLocator userData ].
|
||||||
|
tempFolder := userDataFolder / 'Mutabit' / 'MiniDocs'.
|
||||||
tempFolder exists ifFalse: [ tempFolder ensureCreateDirectory ].
|
tempFolder exists ifFalse: [ tempFolder ensureCreateDirectory ].
|
||||||
^ tempFolder
|
^ tempFolder
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user