Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 124
Registered: ‎11-05-2011
My Device: Z10, Bold 9900
My Carrier: Smartone

Unable to create a visible directory using HTML 5 DirectoryEntry API on bb10

I've tried to create a directory under blackberry.io.sharedFolder with blackberry.io.sandbox = false. The directory was create successfully, but I found the folder is not visible on wifi sharing. It looks like a hidden folder of some sort was created. Some folder attributes may NOT be set properly. Any idea what I've done wrong?

 

blackberry.io.sandbox = false;

 

fs.root.getDirectory(blackberry.io.sharedFolder + "/photos/test", {create: true},

    function (dirEntry) {

        alert("created");

    });

 

Thank you.