Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs: test_links: ignore FileNotFoundError #143

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Sep 1, 2022

Not all filesystems can silently delete it. Ran into this with adlfs.

Comment on lines +172 to +173
with suppress(FileNotFoundError):
to_fs.remove(to_file)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's worth specializing this function? How many filesystems support linktypes really?

Copy link
Member

@skshetry skshetry Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only LocalFileSystem for now, maybe SSHFileSystem in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to ignore this particular one for now.

Link types are supported by local and sshfs right now. Might look closer at this again later.

Copy link
Member

@skshetry skshetry Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sshfs

does it though? I see fsspec/sshfs#9 still open.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good point. Looks like i forgot that we dropped it. But it is first candidate for more link types. I don't think it is worth messing with it right now, but maybe could consider in the future.

@efiop efiop merged commit d9c5995 into iterative:main Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants