aboutcode-org / aboutcode-org/scancode-toolkit

Consider not adding trailing '/' to directory paths when generating CSV from JSON output

Đang mở
#2,449 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug Priority: medium should have
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

While trying to match file/directory paths from one CSV to another, I've encountered challenges when some paths do, and others do not, include a trailing `/`.

I've examined the latest `develop` branch and it seems that while the JSON output of scancode-toolkit does not have a trailing `/` for directories, the CSV generated by scancode-toolkit (as part of a scan or via `--from-json`) adds a trailing `/` to each directory path. (I've downloaded/installed scancode-toolkit-21.2.25 on WSL2 but not yet had time to test the `/` in the CSVs.)

I don't think this is a bug -- it was probably incorporated for a specific purpose at some point -- but unless it's a breaking change of some sort, it would be helpful to remove that functionality from the CSV-generation process.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.