AgNO3 / jcifs-ng

A cleaned-up and improved version of the jCIFS library
GNU Lesser General Public License v2.1
314 stars 104 forks source link

invoke SmbFile.exists get "jcifs.smb.SmbException: The network name cannot be found." error #318

Open TimXu0713 opened 2 years ago

TimXu0713 commented 2 years ago

1.When I use the exists function to judge a non-existent shared directory, an exception "jcifs.smb.SmbException: The network name cannot be found." is thrown. I think this exception should be catch by the method exists and return false to the end user,Between lines 880 and 889 of the SmbFile class.This is just a suggestion, maybe I'm not thinking well

suraj-shingade commented 1 year ago

Same for me, Can anyone please check this issue.