Back to Spacevim

文件函数

docs/cn/api/file.md

2.4.01.2 KB
Original Source

可用接口 >> file

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

简介

文件函数提供了基础的文件读写相关函数,兼容不同系统平台。

values

namedescription
separatorThe system-dependent name-separator character.
pathSeparatorThe system-dependent path-separator character.

functions

namedescription
fticon(file)return the icon of specific file name or path
write(message, file)append message to file
override(message, file)override message to file
read(file)read message from file
ls(dir, if_file_only)list files and directorys in specific directory
updateFiles(files)update the contents of all files