forked from Hyperion/HyperionOS
working on require needs to be done before EOW
This commit is contained in:
34
docs/api/drivers/fs.txt
Normal file
34
docs/api/drivers/fs.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
readAllText(dir) Returns string:contents
|
||||
reads all text from directory on disk
|
||||
|
||||
writeAllText(dir, content) Returns nil
|
||||
writes all content to file
|
||||
|
||||
appendAllText(dir, content) Returns nil
|
||||
appends all content to file
|
||||
|
||||
getAtributes(dir) Returns table:atributes
|
||||
returns atributes of a file or directory
|
||||
|
||||
list(dir) Returns table:files
|
||||
returns contents of directory
|
||||
|
||||
mkdir(dir) Returns nil
|
||||
makes specified directory
|
||||
|
||||
mkfile(dir) Returns nil
|
||||
makes specified file
|
||||
|
||||
-------------------------------------------------------
|
||||
Atributes table
|
||||
number:size
|
||||
size of file in bytes
|
||||
|
||||
number:owner
|
||||
owner UUID
|
||||
|
||||
number:group
|
||||
group UUID
|
||||
|
||||
number:perms
|
||||
file perms 0-21
|
||||
16
docs/api/drivers/readme.md
Normal file
16
docs/api/drivers/readme.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# drivers
|
||||
---
|
||||
|
||||
## driver types
|
||||
---
|
||||
|
||||
```
|
||||
http - internet
|
||||
lan - local networks
|
||||
fs - filesystems
|
||||
disk - normal disks
|
||||
udisk - byte array disks
|
||||
terminal - screens that only support text
|
||||
```
|
||||
|
||||
### Driver APIS
|
||||
8
docs/api/drivers/terminal.txt
Normal file
8
docs/api/drivers/terminal.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
print(text) Returns nil
|
||||
Prints text to the terminal with a trailing \n
|
||||
|
||||
printInline(text) Returns nil
|
||||
Same as print without the trailing \n
|
||||
|
||||
clear() Returns nil
|
||||
Clears screen
|
||||
Reference in New Issue
Block a user