add comment about known issues

This commit is contained in:
2026-09-01 08:35:44 +09:00
parent 2ef8ab0df6
commit 7c873e4382
+22 -2
View File
@@ -124,6 +124,24 @@ bool FileReader(MyZip &zip, std::string strInputPath, const std::filesystem::pat
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
/**
[-Known Issue-]
1. 입력 경로의 상위 디렉터리 전체가 불필요하게 중첩 폴더로 생성되는 현상
- 현상 : 단일 파일 경로 지정 시, 드라이브 및 상위 디렉터리 계층(d:\MyCode\4_Doc\...)이
압축 파일 내부에 그대로 중첩 생성됨
- 원인 : 입력 경로를 상대 경로로 정규화하지 않고 절대 경로 전체를 압축 내부 엔트리 경로로 사용
- 기대값 : 입력 파일 (혹은 디렉토리) 만 압축되어 저장.
2. 내부 상태 플래그 (bRet) 의 미구현
- 현상 : 프로그램의 실패 상황 별 플래그값인 "bool bRet" 의 미구현
- 기대값 : 일반적인 error code 로써 동작하는 리턴 값으로 사용.
3. 별도 Unit Test 미구현
- 현상 : 프로젝트의 디버깅 및 테스트를 위해서는 프로그램의 전체 Work flow 를 따라가야 함.
- 기대값 : 단일 기능 (예 : CRC 값 검증, Output File 테스트) 을 테스트 하기 위한 Unit Test 구현
*/
using namespace std; using namespace std;
int iRet = 0; int iRet = 0;
@@ -132,14 +150,16 @@ int main(int argc, char* argv[])
printf("=== (FOR TEST, Input below) ===\r\n"); printf("=== (FOR TEST, Input below) ===\r\n");
printf("=== (1 : File Test, 2 : Dir Test) ===\r\n"); printf("=== (1 : File Test, 2 : Dir Test) ===\r\n");
printf("====================================================\r\n"); printf("====================================================\r\n");
printf("Input Path: ");
string strInputPath; string strInputPath;
getline(cin, strInputPath); getline(cin, strInputPath);
// Testing input // Testing input
if (stoi(strInputPath) == 1) if (strInputPath == "1")
strInputPath = INPUT_FILE_NAME; strInputPath = INPUT_FILE_NAME;
else if (stoi(strInputPath) == 2) else if (strInputPath == "2")
strInputPath = INPUT_DIR_NAME; strInputPath = INPUT_DIR_NAME;
filesystem::path absPath = filesystem::absolute(strInputPath); filesystem::path absPath = filesystem::absolute(strInputPath);