You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protected async Task StartDownload(string fileName)
string dirName = Path.GetDirectoryName(fileName);
if (dirName != null)
{
Directory.CreateDirectory(dirName); // ensure the folder is existing
}
Imagine using "current folder" for the download path: Path.GetDirectoryName("temp.zip") => result: ""
then Directory.CreateDirectory("") => leads to an exception
Improve:
A quick solution is using if (string.IsNullOrEmpty(dirName))
instead of if (dirName != null)
Or...
"The user should just use .\temp.zip instead of temp.zip"
Well, also makes sense, I guess...
The text was updated successfully, but these errors were encountered:
Thank you for your patience. This issue has been resolved in version 3.3.1. Please update to the latest version and test to see if the problem has been addressed. If you continue to experience any issues, feel free to reopen this ticket.
We appreciate your feedback and appreciate your help in improving our project.
Imagine using "current folder" for the download path:
Path.GetDirectoryName("temp.zip")
=> result: ""then
Directory.CreateDirectory("")
=> leads to an exceptionImprove:
A quick solution is using
if (string.IsNullOrEmpty(dirName))
instead of
if (dirName != null)
Or...
"The user should just use .\temp.zip instead of temp.zip"
Well, also makes sense, I guess...
The text was updated successfully, but these errors were encountered: