Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.
Leonardo Laureti edited this page Jul 23, 2019 · 4 revisions

app.os

Handles filesystem functions

<Object>

 

app.os.fileSessionOpen

Opens a session file through the browser FileReader API, stores it, returns to callback

<Function>   // asyncronous

globals:

<Object> appe__config
<Object> CryptoJS
<Function> pako

arguments:

<Function> callback

returns.

position:

 

app.os.fileSessionSave

Sends a file to the browser, returns to callback

<Function>   // asyncronous

globals:

<Object> appe__config
<Object> CryptoJS
<Function> pako

arguments:

<Function> callback
<Object> source
<Date> timestamp

returns.

position:

 

app.os.fileDownload

Prepares attachment data file and sends it to browser

links: https://github.com/eligrey/FileSaver.js/

<Function>

arguments:

source
<String> filename
<String> mime_type

returns.

position:

 

app.os.fileFindRoot

Finds the root base of file

<Function>

globals:

<Object> appe__config
<Object> appe__control

arguments:

<String> filename
<Boolean> inherit

returns:

<String>

position:

 

app.os.scriptOpen

Tries to open a script and load asyncronously, returns to callback

<Function>   // asyncronous

arguments:

<Function> callback
<String> file
<String> fn
<Number> max_attempts

returns.

position:

 

app.os.generateFileHead

Generates a JSON head

<Function>

globals:

<Object> appe__config

arguments:

<Object> source
<Date> timestamp

returns:

<Object>

position:

 

app.os.generateJsonChecksum

Generates a JSON checksum, returns to callback

<Function>   // asyncronous

arguments:

<Function> callback
<String> source

returns.

position:

 

app.os.getLastFileName

Gets the file name of last opened file

<Function>

globals:

<Object> appe__config

returns:

<String>

position:

 

app.os.getLastFileVersion

Gets the runtime version of last opened file

<Function>

globals:

<Object> appe__store

returns:

<String>

position:

 

app.os.getLastFileChecksum

Gets the JSON checksum of last opened file

<Function>

globals:

<Object> appe__store

returns:

<String>

position:

 

app.os.getLastFileHead

Gets the last opened file header

<Function>

returns:

<Object>

position:

 

Clone this wiki locally