UNPKG

pxt-common-packages

Version:
23 lines 1.45 kB
{ "storage": "File storage operations", "storage.append": "Append string data to a new or existing file.", "storage.appendBuffer": "Append a buffer to a new or existing file.", "storage.appendBuffer|param|filename": "name of the file, eg: \"log.txt\"", "storage.appendLine": "Appends a new line to the file", "storage.appendLine|param|filename": "name of the file, eg: \"log.txt\"", "storage.append|param|filename": "name of the file, eg: \"log.txt\"", "storage.exists": "Return true if the file already exists.", "storage.exists|param|filename": "name of the file, eg: \"log.txt\"", "storage.overwrite": "Overwrite file with string data.", "storage.overwriteWithBuffer": "Overwrite file with a buffer.", "storage.overwriteWithBuffer|param|filename": "name of the file, eg: \"log.txt\"", "storage.overwrite|param|filename": "name of the file, eg: \"log.txt\"", "storage.read": "Read contents of file as a string.", "storage.readAsBuffer": "Read contents of file as a buffer.", "storage.readAsBuffer|param|filename": "name of the file, eg: \"log.txt\"", "storage.read|param|filename": "name of the file, eg: \"log.txt\"", "storage.remove": "Delete a file, or do nothing if it doesn't exist.", "storage.remove|param|filename": "name of the file, eg: \"log.txt\"", "storage.size": "Return the size of the file, or -1 if it doesn't exists.", "storage.size|param|filename": "name of the file, eg: \"log.txt\"" }