getStorageDevices.js 437 B

123456789101112
  1. //This script demonstrate the iteration over storage devices
  2. console.log("Storage Device Setting List");
  3. var html = "";
  4. for (var i = 0; i < LOADED_STORAGES.length; i++){
  5. var thisStorage = LOADED_STORAGES[i];
  6. html = html + "Name=" + thisStorage.Name + "<br>UUID=" + thisStorage.Uuid + "<br>Path=" + thisStorage.Path + "<br><br>";
  7. }
  8. //Set Response header to html
  9. HTTP_HEADER = "text/html; charset=utf-8";
  10. //Send Response
  11. sendResp(html);