Move CreateDirectory for dataDir to try block
This commit is contained in:
parent
5268553e7f
commit
037cf9e1ee
|
@ -191,8 +191,6 @@ namespace Jellyfin.Server
|
|||
}
|
||||
}
|
||||
|
||||
Directory.CreateDirectory(dataDir);
|
||||
|
||||
// configDir
|
||||
// IF --configdir
|
||||
// ELSE IF $JELLYFIN_CONFIG_DIR
|
||||
|
@ -285,6 +283,7 @@ namespace Jellyfin.Server
|
|||
// Ensure the main folders exist before we continue
|
||||
try
|
||||
{
|
||||
Directory.CreateDirectory(dataDir);
|
||||
Directory.CreateDirectory(logDir);
|
||||
Directory.CreateDirectory(configDir);
|
||||
Directory.CreateDirectory(cacheDir);
|
||||
|
|
Loading…
Reference in New Issue
Block a user