Hello all,
In linux system do we need to give permission for folders? like below,
sudo chmod -R a+rwx /home
If i give this command then log file creation is happening.
Please help me on this..
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello All,
I cannot create directory on linux ,it is giving error. The error is "access to the path is denied"
I am using following code in c#.net core
if (!Directory.Exists(logPath))
{
Directory.CreateDirectory(logPath);
}
Please help me on this
Hello all,
In linux system do we need to give permission for folders? like below,
sudo chmod -R a+rwx /home
If i give this command then log file creation is happening.
Please help me on this..
Like I commented above, you specified an invalid path of Home/Test/Log
.
Please study articles such as this to get started.
The actual path value of the folder you created is Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "Test", "Log")
.
Please find the path location snapshot in ubuntu linux.
I created folder ("Home/Test/Log/") manually..but again !Directory.Exists(logPath) returning false and it will go if block,
if (!Directory.Exists(logPath))
{
Directory.CreateDirectory(logPath);
}