1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00
SpaceVim/docs/api/file.md
Wang Shidong 3eb94b292e
Improve system api (#1780)
* Improve system api

* Update apis

* Update apis

* Update apis

* Update apis

* Update apis

* Update file api

* Update build options of vimproc
2018-06-03 10:40:11 +08:00

1.2 KiB

title description
file api file API provides some besic functions and values for current os.

Available APIs >> file

values

name description
separator The system-dependent name-separator character.
pathSeparator The system-dependent path-separator character.

functions

name description
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