From ed7032c274b84f0fa629adcad7358b7b18fa3f03 Mon Sep 17 00:00:00 2001 From: Izaya Orihara Date: Fri, 15 Sep 2017 16:28:10 +1000 Subject: [PATCH] added the get/setattr functions to the API docs --- docs/api.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api.md b/docs/api.md index fbbf5bd..67ac9d9 100644 --- a/docs/api.md +++ b/docs/api.md @@ -75,6 +75,10 @@ Changes the current directory to either *path* or *os.getenv("PWD")*/*path*. Copies a file from *source* to *destination*. #### fs.mv(*source*, *destination*) 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 #### write(...) or io.write(...)