New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local file system storage as default #4386
Local file system storage as default #4386
Conversation
Checks whether or not a file storage has been set. If not, it sets the local file system storage as default.
DirectoryInfo dirInfo; | ||
if (!Directory.Exists(datadirs.Value.StorageDir)) | ||
{ | ||
dirInfo = Directory.CreateDirectory(datadirs.Value.StorageDir); | ||
} | ||
else | ||
{ | ||
dirInfo = new DirectoryInfo(datadirs.Value.StorageDir); | ||
} | ||
var dirInfo = Directory.Exists(datadirs.Value.StorageDir) | ||
? new DirectoryInfo(datadirs.Value.StorageDir) | ||
: Directory.CreateDirectory(datadirs.Value.StorageDir); | ||
|
||
if (!Directory.Exists(datadirs.Value.TempDir)) | ||
{ | ||
Directory.CreateDirectory(datadirs.Value.TempDir); | ||
} | ||
|
||
DirectoryInfo tmpdirInfo; | ||
if (!Directory.Exists(datadirs.Value.TempStorageDir)) | ||
{ | ||
tmpdirInfo = Directory.CreateDirectory(datadirs.Value.TempStorageDir); | ||
} | ||
else | ||
{ | ||
tmpdirInfo = new DirectoryInfo(datadirs.Value.TempStorageDir); | ||
} | ||
var tmpdirInfo = Directory.Exists(datadirs.Value.TempStorageDir) | ||
? new DirectoryInfo(datadirs.Value.TempStorageDir) | ||
: Directory.CreateDirectory(datadirs.Value.TempStorageDir); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are just simplifications of the existing code.
Concept ack. |
The PR is migrating current installs to use file storage provider. |
@NicolasDorier Updated as discussed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK!
Checks whether or not a file storage has been set. If not, it sets the local file system storage as default.