Re: Get operation doesn't throw error when file is not found on server
That's by design. The argument of the
GetFiles
method is a file mask. In your case that mask can actually match a single specific file only. Still, if the mask does not match anything, it's not an error. You can use the return value of the method to check if anything was downloaded (instead of explicitly checking file existence - what is prone to race conditions).