smbj icon indicating copy to clipboard operation
smbj copied to clipboard

Documentation of library API ?

Open yoosYyd opened this issue 7 years ago • 10 comments

How to use this lib, if documentation is not exist ?

yoosYyd avatar Oct 29 '17 11:10 yoosYyd

There are a few examples in the README. What are you looking for exactly?

hierynomus avatar Nov 06 '17 12:11 hierynomus

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);
}

mdrobert avatar Nov 09 '17 12:11 mdrobert

How I can get names list of shared resources ??

yoosYyd avatar Nov 14 '17 11:11 yoosYyd

I suppose you mean the names of all the shares that are on the server?

hierynomus avatar Nov 14 '17 12:11 hierynomus

Yes.

yoosYyd avatar Nov 15 '17 17:11 yoosYyd

I suppose you mean the names of all the shares that are on the server?

Any answer to this question?

travisennis avatar Dec 13 '17 20:12 travisennis

it is better show download , upload and rename doc

vfishv avatar Aug 06 '18 14:08 vfishv

@mdrobert the rename api do not delete the file, it move file to the root dir

anatta-feng avatar Aug 29 '18 07:08 anatta-feng

Is it possible to get shared printers of a win server? and if yes how?

shahvir avatar Sep 14 '18 20:09 shahvir

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

abhiupa087 avatar Nov 16 '22 11:11 abhiupa087