personium / personium-engine

Additional module for personium-core to enable server-side JavaScript execution.
Apache License 2.0
16 stars 7 forks source link

_p.localbox support #45

Closed dixonsiu closed 6 years ago

dixonsiu commented 6 years ago

Make boxlocal file operations and OData operations simple.

Add the followings to personium-dao.js.

_p.localbox =  function() {
    try {
        return _p.as('client').cell().box();
    } catch (e) {
        return null;
    };
};

Sample in engine script:

_p.localbox().col('dir1')