Skip to content

Conversation

@bjk7119
Copy link
Contributor

@bjk7119 bjk7119 commented Jan 23, 2026

Description

  • Use a hidden directory to store intermediate files to fix scan count error.
  • Move the final output file to the output path from the directory at the end.
  • Delete duplicate log message.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Refactoring, Maintenance
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@bjk7119 bjk7119 requested a review from dd-jy January 23, 2026 08:29
@bjk7119 bjk7119 self-assigned this Jan 23, 2026
@bjk7119 bjk7119 added the chore [PR/Issue] Refactoring, maintenance the code label Jan 23, 2026
_result_log, result_reports, output_extensions, formats, output_path, original_output_path = init(
path_to_find_bin, output_dir, formats, path_to_exclude)

total_bin_cnt = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

@bjk7119
더이상 안쓰는 변수 정리해주세요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

return 받는 변수 모두 사용됩니다.
아래 total_file_cnt는 사용되지 않아 제거하였습니다.

_result_log, compressed_list_txt, simple_bin_list_txt = init_simple(output_dir, PKG_NAME, start_time)
else:
_result_log, result_reports, output_extensions, formats = init(
_result_log, result_reports, output_extensions, formats, output_path, original_output_path = init(
Copy link
Contributor

Choose a reason for hiding this comment

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

@bjk7119
이렇게되면 기존 output_path가 .fosslight_tmp로 변경되는데 로그말고 영향끼치는 부분 없나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

네 로그 말고는 결과파일 생성도 동일하게 되고 영향 끼치는 부분이 없으나
로그에도 original_output_path가 찍히는게 맞을 것 같아 추가 수정하였습니다.

@bjk7119 bjk7119 merged commit f868a46 into main Jan 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore [PR/Issue] Refactoring, maintenance the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants