hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
707 stars 180 forks source link

Unresolved reference: SMBApiException #785

Closed LeafyLappa closed 1 year ago

LeafyLappa commented 1 year ago

There's this section in README.md:

Screenshot 2023-08-17 at 7 43 08 PM

However the SMBApiException class does not seem to exist. There only seems to be SMBException.

andershermansen commented 1 year ago

Its there in the com.hierynomus.mssmb2 package.

Ref: https://github.com/hierynomus/smbj/blob/master/src/main/java/com/hierynomus/mssmb2/SMBApiException.java

LeafyLappa commented 1 year ago

Hmm okay. Thank you

LeafyLappa commented 1 year ago

Anyways, is there a tutorial or a complete example on how to use the library? I'm very confused.

My case: I'm writing a Kotlin wrapper for an Android application, and I don't understand how to download a directory from remote share.

andershermansen commented 1 year ago

It’s a low level library. You would have to iterate through the files in a directory one by one and download.