os

The system operation module belongs to the built-in module. It can be called directly by the script scope without using import.

This module is also a native module of lua, and xmake has been extended to provide more practical interfaces.

Only some readonly interfaces (for example: os.getenv, os.arch) in the os module can be used in the description scope. Other interfaces can only be used in the script domain, for example: os.cp, os.rmetc.

edit

os.arch

edit

os.cpuinfo

edit

os.curdir

edit

os.date

edit

os.default_njob

edit

os.dirs

edit

os.exists

edit

os.filedirs

edit

os.files

edit

os.filesize

edit

os.getenv

edit

os.host

edit

os.isdir

edit

os.isfile

edit

os.mclock

edit

os.mtime

edit

os.programdir

edit

os.programfile

edit

os.projectdir

edit

os.projectfile

edit

os.scriptdir

edit

os.subarch

edit

os.subhost

edit

os.term

edit

os.time

edit

os.tmpdir

edit
接口
os.arch
os.cpuinfo
os.curdir
os.date
os.default_njob
os.dirs
os.exists
os.filedirs
os.files
os.filesize
os.getenv
os.host
os.isdir
os.isfile
os.mclock
os.mtime
os.programdir
os.programfile
os.projectdir
os.projectfile
os.scriptdir
os.subarch
os.subhost
os.term
os.time
os.tmpdir