mirror of https://github.com/NekoX-Dev/NekoX.git
try fix third-party cache path
This commit is contained in:
parent
b2a57d7c02
commit
c71f3240a3
|
@ -54,13 +54,11 @@ object EnvUtil {
|
||||||
// https://github.com/NekoX-Dev/NekoX/issues/284
|
// https://github.com/NekoX-Dev/NekoX/issues/284
|
||||||
NekoConfig.cachePath.setConfigString(availableDirectories[2]);
|
NekoConfig.cachePath.setConfigString(availableDirectories[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
var telegramPath = File(NekoConfig.cachePath.String())
|
var telegramPath = File(NekoConfig.cachePath.String())
|
||||||
|
|
||||||
if (telegramPath.isDirectory || telegramPath.mkdirs()) {
|
if (telegramPath.isDirectory || telegramPath.mkdirs()) {
|
||||||
|
|
||||||
return telegramPath
|
return telegramPath
|
||||||
|
} else {
|
||||||
|
NekoConfig.cachePath.setConfigString(availableDirectories[2])
|
||||||
}
|
}
|
||||||
|
|
||||||
// fallback
|
// fallback
|
||||||
|
|
Loading…
Reference in New Issue