Related links
Developer Resources
Properties
Display properties of file / folder on your IDrive account using
Properties API.
Syntax:
idevsutil --xml-output --password-file=<account password> --properties <username>@<server address>::ibackup/<file/folder path name for which you wish to see properties>
- --password-file=PATH_OF_PSWD_FILE
Reads account password from the specified file. Alternately, you can directly set the password using --password-file=<account password>
- Username
IDrive username. If you do not have a valid username Sign up with IDrive.
- Server address:
Use GetServerAddress API to retrieve the IDrive server address.
- 1. File Properties
-
Code:
The following code will display properties of “Inventory.ldb” file:
idevsutil --xml-output --password-file="MyPassword" --properties john@<server address>::ibackup/C/Inventory.ldb
The above-mentioned code can be executed using any programming language across any platform (Windows, Mac and Linux).
Output:
Sample XML output:
<item create_time="2011/07/18 16:00:44"/>
<item access_time="2011/07/18 16:00:44"/>
<item mod_time="2010/09/09 15:03:54"/>
<item size="35127 bytes"/>
Description:
The following details are displayed while retrieving properties:
- create_time
File created time
- access_time
File accessed time
- mod_time
File modified time
- size
Size of the file
- 2. Folder Properties
-
Code:
The following code will display properties of "C/DATA/" folder
idevsutil --xml-output --password-file="MyPassword" --properties john@<server address>::ibackup/C/DATA/
The above-mentioned code can be executed using any programming language across any platform (Windows, Mac and Linux).
Output:
Sample XML output:
<item create_time="2011/07/18 16:00:44"/>
<item files_count="3"/>
<item size="86437 bytes"/>
Description:
The following details are displayed while retrieving properties:
- create_time
Folder created time
- files_count
No of files inside folder
- size
Size of the folder
You can make use of I / O redirection methods for redirecting IDrive EVS command line utility (idevsutil) output.