mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
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
|
// configDir
|
||||||
// IF --configdir
|
// IF --configdir
|
||||||
// ELSE IF $JELLYFIN_CONFIG_DIR
|
// ELSE IF $JELLYFIN_CONFIG_DIR
|
||||||
@ -285,6 +283,7 @@ namespace Jellyfin.Server
|
|||||||
// Ensure the main folders exist before we continue
|
// Ensure the main folders exist before we continue
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Directory.CreateDirectory(dataDir);
|
||||||
Directory.CreateDirectory(logDir);
|
Directory.CreateDirectory(logDir);
|
||||||
Directory.CreateDirectory(configDir);
|
Directory.CreateDirectory(configDir);
|
||||||
Directory.CreateDirectory(cacheDir);
|
Directory.CreateDirectory(cacheDir);
|
||||||
|
Loading…
Reference in New Issue
Block a user