AMSMB2 icon indicating copy to clipboard operation
AMSMB2 copied to clipboard

Duplicated path

Open DemianSteelstone opened this issue 4 years ago • 3 comments

Hi! There is a path duplication if you try to get attributes of folder. For example, If you try to get the attributes of the folder located "/folder", you will get: attributes[.pathKey] == "/folder/folder"

DemianSteelstone avatar Apr 30 '20 07:04 DemianSteelstone

The path always includes the actual item. So if you have a folder at a path /folder it will be /folder/folder. Equally a file.md at a path /folder will have a path property of /folder/file.md

MartinP7r avatar May 21 '20 01:05 MartinP7r

Full path of a folder "/root/1" but when I try to get the attributes, I get the path value "/root/1/1"

DemianSteelstone avatar May 21 '20 06:05 DemianSteelstone

i stumbled onto the same problem on one of my servers!
Just like you described, the path is /folder/file, however the retrieved NSURLPathKey says /folder/file/file.
On top of that, I can't seem to be able to download the file...

Did you by any chance find a workaround for this?

MartinP7r avatar Sep 30 '21 01:09 MartinP7r

It is fixed by now. Thanks. @MartinP7r @DemianSteelstone

amosavian avatar Nov 18 '23 20:11 amosavian