Files
marqdo/tests/lib/fs-copy-move.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

591 B


title: fs copy/move/temp import fs:lib/fs.mq.md

main

fs.write_text path="m2-src.txt" text="m2-body"

fs.copy_file src="m2-src.txt" dest="m2-copy.txt"

t = > fs.read_text path="m2-copy.txt"

print text=t

fs.move src="m2-copy.txt" dest="m2-moved.txt"

ok = > fs.exists path="m2-moved.txt"

  1. ok

print text=moved

print text=missing

tmp = > fs.make_temp prefix="m2"

fs.write_text path=tmp text=temp-ok tt = > fs.read_text path=tmp print text=tt

fs.remove path="m2-src.txt" fs.remove path="m2-moved.txt" fs.remove path=tmp