Преглед на файлове

Updated agi documentation on appdata library

TC pushbot 5 преди 4 години
родител
ревизия
cc9b069e0f
променени са 1 файла, в които са добавени 15 реда и са изтрити 0 реда
  1. 15 0
      AGI Documentation.md

+ 15 - 0
AGI Documentation.md

@@ -468,6 +468,21 @@ To use the user default option which user has set in File Manager WebApp, pass i
 filelib.aglob("user:/Desktop/*.jpg", "user");
 ```
 
+### appdata
+
+An API for access files inside the web folder. This API only provide read only functions. Include the appdata lib as follows.
+
+```
+requirelib("appdata");
+```
+
+#### appdata functions
+
+```
+appdata.readFile("UnitTest/appdata.txt"); //Return false (boolean) if read failed
+appdata.listDir("UnitTest/backend/"); //Return a list of files in JSON string
+```
+
 
 
 ### imagelib