marqdo

lib/fs — filesok

stdlib/fs.mq.md

文档

fs:lib/fs.mq.md

main

说明

Filesystem helpers from lib/fs. Bare path words must not contain / (division). Prefer a same-folder name or a variable.

`ok` = [fs.exists] path="demo.txt"
  1. ok
    打印 内容="demo-present"
  2. else
    打印 内容="demo-missing"
Functions
Variables
  • description text
    Read and write text under the sandbox
  • markup text
    occlusion
  • ok bool
    False
  • title text
    lib/fs — files
可执行知识(辅助)

运行与结果

demo-missing
完整源码
---
markup: occlusion
title: lib/fs — files
description: Read and write text under the sandbox
import:
  fs: lib/fs.mq.md
---

# main

Filesystem helpers from lib/fs. Bare path words must not contain `/` (division). Prefer a same-folder name or a variable.

**`ok` = [fs.exists] path="demo.txt"**

1. `ok`
  **打印 内容="demo-present"**
2. *
  **打印 内容="demo-missing"**

Variable