mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-11-30 05:20:13 +01:00
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
Block a user