Skip to content

Conversation

@hommeabeil
Copy link

Add the exists function to the trait, which simulate the std::path::Path::exists function. This is useful when working with node which are not a file or a directory. Our use case is the a device node, like /dev/sda. is_file return false since the node is not a regular file. For those who are looking for a work around, we are currently using the mode function and check the return with is_ok, it is a bit hacky, but works for us.

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.

1 participant