Get info about a storage

An example showing info about the particular storage on you device with Tizen 2.3. Requires http://tizen.org/privilege/filesystem.read privilege
var success = function(storage) {
  console.log(
    'Label: ' + storage.label + ', ' +
    'Type: ' + storage.type + ', ' +
    'State: ' + storage.state
  );
};

var error = function(e) {
  console.log('Error!' + e.message);
};

tizen.filesystem.getStorage('images', success, error);

Responses

0 Replies