Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In simulator 0.9.1 files appear in the /stage folder instead of the of the /private/data folder

Today I updated the simulator to version 0.9.1 and found that files received from a remote http source are not displayed on the screen of clock in simulator. It turns out that the files are written to the vulcan\app\apps\1\stage folder and not to the vulcan\app\apps\1\private\data folder

I am sending files using 'outbox' in companion:

 

import * as messaging from "messaging"; 
import { settingsStorage } from "settings";
import { encode } from 'cbor';
import { outbox } from "file-transfer";
import { Image } from "image";

outbox.enqueue(destFileName, buffer);

 

 

I get files in inbox like this:

 

import {inbox} from "file-transfer";
function processAllFiles(){
let fileName;
while (fileName = inbox.nextFile()) {
console.log('inbox new file '+fileName);
}
inbox.addEventListener("newfile", processAllFiles);

 

 As I understand the files are readable only from the /private/data folder? Why does the simulator write files to the /stage folder? 

Best Answer
0 Votes
0 REPLIES 0