added the get/setattr functions to the API docs

This commit is contained in:
Izaya 2017-09-15 16:28:10 +10:00 committed by Izaya
parent d6b9b1db3a
commit ed7032c274

View File

@ -75,6 +75,10 @@ Changes the current directory to either *path* or *os.getenv("PWD")*/*path*.
Copies a file from *source* to *destination*. Copies a file from *source* to *destination*.
#### fs.mv(*source*, *destination*) #### fs.mv(*source*, *destination*)
Same as fs.cp but deletes *source* afterwards. Same as fs.cp but deletes *source* afterwards.
#### fs.getattr(*path*,*key*)
Returns the value of *path*'s extended attribute *key*, assuming your user ID is in the read attribute.
#### fs.setattr(*path*,*key*,*value*)
Set *path*'s extended attribute *key* to *value*, assuming your user ID is in the write attribute
### io ### io
#### write(...) or io.write(...) #### write(...) or io.write(...)