smbj
smbj copied to clipboard
Documentation of library API ?
How to use this lib, if documentation is not exist ?
There are a few examples in the README. What are you looking for exactly?
Hello, I also miss the documentation. For example: How do I rename files (This code will delete the file content)?
try (DiskEntry entry = getShare().open(
currentPath,
EnumSet.of(DELETE, FILE_WRITE_DATA),
EnumSet.of(FILE_ATTRIBUTE_NORMAL),
SMB2ShareAccess.ALL,
FILE_OVERWRITE_IF, null)) {
entry.rename(newPath, replaceExisting);
}
How I can get names list of shared resources ??
I suppose you mean the names of all the shares that are on the server?
Yes.
I suppose you mean the names of all the shares that are on the server?
Any answer to this question?
it is better show download , upload and rename doc
@mdrobert the rename api do not delete the file, it move file to the root dir
Is it possible to get shared printers of a win server? and if yes how?
I suppose you mean the names of all the shares that are on the server?
@hierynomus any pointers on this? How can we achieve this for SMB3? I referred examples given in below repo but it did not work for me for SMB3 but works for SMB2. https://github.com/rapid7/smbj-rpc