Fixed the mode of path_to_file_list and defined 'lines' #217
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
기존의 main.py 5-6 lines에서
li = open(path, 'w')
return lines 를
with open(path, 'r') as file:
lines = file.read().splitlines()
return lines 로 수정
기존 코드는 파일을 쓰기 모드로 열기 때문에 내용을 읽어오지 못하여
읽기 모드로 변경하여 파일 내용을 가져오도록 수정
또한 lines 변수가 정의되지 않았기 때문에 정의하여 수정