Skip to content

Commit

Permalink
Move CreateDirectory for dataDir to try block
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboniface committed Mar 10, 2019
1 parent 5268553 commit 037cf9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Jellyfin.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ private static ServerApplicationPaths CreateApplicationPaths(StartupOptions opti
}
}

Directory.CreateDirectory(dataDir);

// configDir
// IF --configdir
// ELSE IF $JELLYFIN_CONFIG_DIR
Expand Down Expand Up @@ -285,6 +283,7 @@ private static ServerApplicationPaths CreateApplicationPaths(StartupOptions opti
// Ensure the main folders exist before we continue
try
{
Directory.CreateDirectory(dataDir);
Directory.CreateDirectory(logDir);
Directory.CreateDirectory(configDir);
Directory.CreateDirectory(cacheDir);
Expand Down

0 comments on commit 037cf9e

Please sign in to comment.