assert_fs icon indicating copy to clipboard operation
assert_fs copied to clipboard

symlink verification fails for link -> file?

Open chipsenkbeil opened this issue 4 years ago • 3 comments

This is quite the edge case, but I've got a test configured where I perform filesystem operations using SFTP against the local machine connected to itself. In the screenshot below, the test connects the machine to itself and leverages SFTP to create a symlink to a file. The symlink is created successfully, but when testing the link using assert_fs, it seems to think it is a file and not a symlink (unless I'm reading it wrong). When pulling the file stat information via sftp, it is properly reflected as a symlink.

image

chipsenkbeil avatar Sep 25 '21 03:09 chipsenkbeil

What does your local file system report the file to be?

epage avatar Sep 25 '21 16:09 epage

I'll have to check when I get home. std::fs::Metadata also reported a symlink.

On Sat, Sep 25, 2021, 11:31 AM Ed Page @.***> wrote:

What does your local file system report the file to be?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/assert-rs/assert_fs/issues/70#issuecomment-927147027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS55CU6SHYZY55DTZSRTJTUDX2PJANCNFSM5EXD25FQ .

chipsenkbeil avatar Sep 25 '21 16:09 chipsenkbeil

Could you verify if predicates 3.0.2 fixes this for you?

epage avatar Mar 24 '23 15:03 epage