[bug] session.GetFiles uses current dir automatically
While using this library for downloading files ex.
You have localPath as parameter.
Library should throw the exception when directory doesn't exists or application don't have rights to save file.
For now directory is automatically change to 'current directory'.
Problem:
When library is used in MVC project the default 'current directory' is bin folder.
So IIS pool is reseting, current thread is aborting and there is no exception or error message (in system event log or IIS logs).
Another notation:
in this example situation looks the same. Foler bin/Downloaded is used.
Discovery of this bug took me 5 days.
var t = session.GetFiles(path, @"C:\Downloaded", false, transferOptions);
Library should throw the exception when directory doesn't exists or application don't have rights to save file.
For now directory is automatically change to 'current directory'.
Problem:
When library is used in MVC project the default 'current directory' is bin folder.
So IIS pool is reseting, current thread is aborting and there is no exception or error message (in system event log or IIS logs).
Another notation:
var t = session.GetFiles(path, @"Downloaded", false, transferOptions);
Discovery of this bug took me 5 days.