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
|
||||
NekoConfig.cachePath.setConfigString(availableDirectories[2]);
|
||||
}
|
||||
|
||||
var telegramPath = File(NekoConfig.cachePath.String())
|
||||
|
||||
if (telegramPath.isDirectory || telegramPath.mkdirs()) {
|
||||
|
||||
return telegramPath
|
||||
|
||||
} else {
|
||||
NekoConfig.cachePath.setConfigString(availableDirectories[2])
|
||||
}
|
||||
|
||||
// fallback
|
||||
|
|
Loading…
Reference in New Issue