copyfiles -u 옵션

Category
TIP
Status
Published
Tags
script
Description
Published
Slug
"copy-assets": "copyfiles -u 3 \"app/module/wiseScan64/**/*\" dist/app/module/wiseScan64",
 
copyfiles 명령어에서 -u 옵션은
경로에서 상위 디렉토리 레벨을 얼마나 제거할지를 결정한다.
 
현재 app/module/wiseScan64 폴더 안의 파일과 폴더들을
dist/app/module/wiseScan64 안에 그대로 복사하고 싶다면, -u 옵션을 적절히 조정해야 한다.
 
app/module/wiseScan64 경로를 기준으로 wiseScan64 폴더 내부 구조만 필요하다면,
app, module, wiseScan64까지 총 3단계 상위 디렉토리를 제거하면 된다.
 
즉, -u 3를 사용하면 OmniOCR, WS420 등이 dist/app/module/wiseScan64 바로 아래에 위치하게 된다.