파일 · 명령 참조
qzx movePath
기능
파일, 심볼릭 링크 또는 전체 디렉터리를 이동하거나 이름을 바꾸며 디렉터리의 부분 이동은 거부합니다.
명령 성숙도: Alpha
실제 사용과 피드백에 사용할 수 있지만 인터페이스와 동작은 아직 바뀔 수 있습니다. 현재 개발 체크아웃에 대한 평가입니다. 이후의 각 불변 릴리스 태그는 해당 버전에 포함된 정확한 평가를 보존합니다. PyPI 0.2.2.0.9에서 사용할 수 있습니다. 문서는 alpha 체크아웃 0.2.2.0.9에 해당합니다.
동작 및 내장 보호
실제 모드는 요청한 변경 사항을 적용합니다
이 작업은 직접 실행됩니다
네이티브 프로그램을 호출하지 않고 작동합니다
네트워크를 사용하지 않고 작동합니다
현재 권한을 사용하며 결과는 달라질 수 있습니다
QZX는 전체 디렉터리만 이동하고 같은 파일 시스템에서는 rename을 사용합니다. 일부만 복사되거나 삭제된 트리가 남지 않도록 유한 깊이 지정과 파일 시스템 간 디렉터리 이동을 거부합니다. 파일 시스템을 넘는 파일은 대상을 게시하고 원본을 제거하기 전에 준비한 뒤 크기와 SHA-256으로 검증합니다. 루트, 특수 객체 및 조상/하위 관계도 차단합니다. --force는 교체 전에 이전 대상을 백업합니다.
QZX는 실제 변경 전에 복구 파일을 만듭니다. 이를 의도적으로 생략하기로 결정한 경우에만 --dangerously-bypass-approvals-and-sandbox/--yolo를 사용하세요.
이 안전 분류는 2026-08-25에 OpenAI GPT-5.6 Pro가 구현 다이제스트 sha256:1559276c985be85d9f6083622a44962973695297152550858e4261c992176c23를 기준으로 검토했습니다.
정확한 구문
qzx movePath <source> <destination> [force] --json매개변수
밀거나 가로 스크롤 막대를 사용해 모든 열을 확인하세요.
| 이름 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| source | str | 예 | 선언되지 않음 | 원본 파일, 심볼릭 링크 또는 디렉터리 경로 |
| destination | str | 예 | 선언되지 않음 | 파일 시스템의 새 위치 경로 |
| force | bool | 아니요 | false | 안전 백업을 만든 뒤 기존 대상 교체 |
입력 예제
qzx movePath source.txt destination.txt파일 이동 또는 이름 변경
qzx movePath myfile.txt archive/myfile.txt파일을 아카이브 디렉터리로 이동
qzx movePath sourcedir destinationdir전체 디렉터리 이동
qzx movePath sourcedir destinationdir --force기존 대상을 백업하고 전체 디렉터리로 교체
전체 구조화 페이로드를 받으려면 --json을 추가하세요: qzx movePath <source> <destination> [force] --json
대표 출력 예제
이 예시 JSON은 현재 구현이 뒷받침하는 결과 계약에서 파생됩니다. 기록된 실행이라고 주장하지 않고 명령이 반환할 수 있는 내용을 보여 주며, 값은 입력, 장비, 권한 및 선택 도구에 따라 달라집니다.
예제 명령: qzx movePath source.txt destination.txt --json
{
"success": true,
"message": "Moves or renames one file, symbolic link, or complete directory; partial directory moves are rejected. In this illustrative example, the command completed successfully.",
"meta": {
"command": "movePath",
"command_maturity": {
"stage": "alpha",
"label": "Alpha",
"sequence": 2,
"public_executable": true,
"stability": "interface_may_change",
"summary": "Available for real use and feedback while its interface and behavior can still evolve.",
"promotion_review_required": false,
"assessment_scope": "development_checkout"
},
"duration_ms": 0,
"schema_version": 1
},
"details": {
"status": "ok",
"source_exists_after": "C:\\project\\example.txt",
"destination_exists_after": "C:\\project\\example.txt",
"verification": "Example value",
"replacement_cleanup": "Example value",
"retained_previous_path": null
},
"warnings": [
{
"name": "example",
"status": "ok"
}
]
}JSON 결과 계약 보기
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"success",
"message",
"meta"
],
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"meta": {
"type": "object",
"required": [
"command",
"command_maturity",
"duration_ms",
"schema_version"
],
"properties": {
"command": {
"type": "string"
},
"command_maturity": {
"type": "object",
"required": [
"stage",
"label",
"sequence",
"public_executable",
"stability",
"summary",
"promotion_review_required",
"assessment_scope"
],
"properties": {
"stage": {
"type": "string"
},
"label": {
"type": "string"
},
"sequence": {
"type": "integer"
},
"public_executable": {
"type": "boolean"
},
"stability": {
"type": "string"
},
"summary": {
"type": "string"
},
"promotion_review_required": {
"type": "boolean"
},
"assessment_scope": {
"type": "string"
},
"note": {
"type": "string"
},
"review": {
"type": "object",
"required": [
"reviewed_on",
"rationale",
"evidence"
],
"properties": {
"reviewed_on": {
"type": "string",
"format": "date"
},
"rationale": {
"type": "string"
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"replacement": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": true
},
"duration_ms": {
"type": "number"
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
"details": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"source_exists_after": [],
"destination_exists_after": [],
"verification": [],
"replacement_cleanup": [],
"retained_previous_path": {
"type": "null"
}
},
"additionalProperties": true
},
"error": [],
"error_code": [],
"warnings": []
},
"additionalProperties": true
}오류 및 제한
공개 계약은 실패 시 success=false와 설명적인 message를 요구합니다. 이 카탈로그는 아직 명령별 오류 분류 체계를 선언하지 않으므로 결과를 확인하고 존재하지 않는 코드를 추정하지 마세요.
QZX는 alpha 단계입니다. 선택적 종속성, 권한 및 호스트 기능에 따라 결과가 달라질 수 있습니다.
근거 흐름: 통제된 특권 환경 필요.
근거 및 출처
- 테스트
- 같은 모듈 이름의 전용 테스트 파일을 찾지 못했지만 테스트 커버리지가 전혀 없다는 뜻은 아닙니다.
- 문서 채널
- 개발 문서 0.2.2.0.9 · main · sha256:cfba936e39931c286ca23add0ae546693db17d8b316e7cbc3891d26642d9b7e8
- 제공 여부
- 0.2.2.0.9 또는 이전
계속 살펴보기
관련 명령
이 명령들도 파일 범주에 속합니다. 비교하여 작업에 가장 적합한 작업을 선택하세요.