Skip to content

中文 | English

File ​

This document is lengthy and has no English translation yet.

The section outline below mirrors the Chinese source document; see file.md for the original.

  • 模块概述
  • 读文件
    • read(path) / read(path)
  • 写文件
    • write(path, content) / write(path, content)
    • append(path, content) / append(path, content)
  • 路径查询
    • exists(path) / exists(path)
    • isFile(path) / isFile(path)
    • isDir(path) / isDir(path)
    • size(path) / size(path)
  • 文件操作
    • move(src, dst) / move(src, dst)
    • copy(src, dst) / copy(src, dst)
    • remove(path) / remove(path)
    • removeAll(path) / removeAll(path)
  • 目录操作
    • mkdir(path) / mkdir(path)
    • listDir(path) / listDir(path)
  • 完整示例
    • Python
    • Lua
  • 可用接口