Can anyone please let me know what is the SMBJ API to copy folder/files from fileshare to my local machine ?
Also, if possible can i get an example for the same ?
Can anyone please let me know what is the SMBJ API to copy folder/files from fileshare to my local machine ?
Also, if possible can i get an example for the same ?
Once you've obtained the File from the
DiskShare
, you can just callFile.getInputStream()
, and copy the bytes to a localjava.io.FileOutputStream
like you would do with a regular file copy in Java.