Languages

Menu
Sites
Language
Storage managment

hi there!

I've downloaded sample "FileManager". I would like to add functionality, to work with sdcard. how can i do it?

In app.model.js I've added storages: [{label: 'root', type: 'INTERNAL'},{label: 'flash', type: 'EXTERNAL'}], also i've implemented this 

loadExternalStorages: function Model_loadExternalStorages(onSuccess) {
            var self = this;
            
            this.systemIO.getStorages('EXTERNAL', function (storages) {
                self.storages = storages;
                if(typeof onSuccess === 'function') {
                    onSuccess();
                }
            },'removable1');
        },

what else?

Responses

1 Replies
Alex Dem

Hi,
Try to look at Filesystem API (especially on to FileSystemManager and FileSystemStorage interface):
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.device.apireference/tizen/filesystem.html#::Filesystem::FileSystemManager
Alexey.