Getting Storage info of device in Tizen Web app

This code shows how to get the storage info of device in Tizen Web app. Storage info like type of storage, total capacity, available capacity, is the storage removable etc can be found by this simple code snippet. The availableCapacity and capacity returns in Byte unit. Type returns in string unit a