Android Question Possible bug in jcfs-ng?

MrKim

Well-Known Member
Licensed User
Longtime User
Possible Bug?
This is on a windows share
Everything that is supposed to show the name and or path is failing to put a ? or \ between the final directory and the filename
in this case Drawings is a dir and the filename is 0000-Test.jpg

View attachment 163219
f.name = Drawings0000-Test.jpg (105353)
f.CanonicalPath = smb://MyServer/MyData/Drawings0000-KimsTest.jpg
I notice the entries in Log($"SMBClient_ListFiles(${filelist})"$) leave out the last directory entirely:
SMBClient_ListFiles([smb://MyServer/MyData/0000-KimsTest.jpg, smb://MyServer/MyData/0000-Test.jpg, smb://MyServer/MyData/0000824-003.jpg,....
 
Solution
Possible Bug?
This is on a windows share
Everything that is supposed to show the name and or path is failing to put a ? or \ between the final directory and the filename
I found the problem but I don't know if it is something that needs to be fixed or not.
I had left the final / off the unc.
I had: smb://MyServer/MyData/Drawings
Should be: smb://MyServer/MyData/Drawings/
seems to me it should either add the final / or fail.

But @DonManfred - I am not complaining! Great work, thanks so much for this!

MrKim

Well-Known Member
Licensed User
Longtime User
Possible Bug?
This is on a windows share
Everything that is supposed to show the name and or path is failing to put a ? or \ between the final directory and the filename
I found the problem but I don't know if it is something that needs to be fixed or not.
I had left the final / off the unc.
I had: smb://MyServer/MyData/Drawings
Should be: smb://MyServer/MyData/Drawings/
seems to me it should either add the final / or fail.

But @DonManfred - I am not complaining! Great work, thanks so much for this!
 
Upvote 0
Solution
Top