getStorage
The command returns the total discspace and the used discspace in the assetsdirectory. The information is returned using the Result sub-element storageInfo
.
Input Parameters
Fields | Values | Description |
---|---|---|
Output
Fields | Values | Description |
---|---|---|
Command | getStorage | Echo of the command element name |
Code | 0 -1 1 | 0 = success -1 = DTD Violation 1 = Processing Error |
totalDiscspace | A decimal number | Total storage capacity of the assetsdirectory in bytes |
freeDiscspace | A decimal number | Available space in the assetsdirectory in bytes |
Processing Errors
- "directory ....” - some problem with the assetsdirectory"
Examples
Request
<getStorage/>
Response On Success
<Result Command="getStorage" Code="0">
<StorageInfo totalDiscspace="...." freeDiscSpace="...." />
</Result>
Response On Failure
<Result Command="getStorage" Code="1">
<Description>Directory '/assets': no such file or directory</Description>
</Result>