3
I am consuming a legacy system method that generates scans some Ftps directories and searches for files. However, if it accesses a directory that does not have files, it creates an exception. Is there any way I can use this method, but ignore if it generates this exception? (without changing the original method)
The first option is to get that original code. The second option is to create more code that checks if the directory has files and then run this method in case there are files... hide problems is not option in my view.
– Sergio
You can put his code?
– rray
Before accessing FTP, check if you have files in the directory...
– Bruno Wego