How to reproduce
- Download https://dist.apache.org/repos/dist/dev/iceberg/iceberg-rust-0.2.0-rc.1/apache-iceberg-rust-0.2.0-src.tar.gz
- Run
mkdir tmp && cd tmp && tar -xzf ../apache-iceberg-rust-0.2.0-src.tar.gz && cd apache-iceberg-rust-0.2.0-src
- Run
cargo sort -c -w
Then it reports "No file found at" error.
Investigation
I think the bug is in this line, since it considers any path which contains dots as file with extension.
If we rename dir name apache-iceberg-rust-0.2.0-src to anything without dots, it works fine.