FileWatcher Inventory File Reference

Article Id
kb311
Published
25 Jan 2019 at 15:31
Last Updated
25 Jan 2019 at 16:41
Reading Time
7 minutes, 25 seconds

Introduction

This article explains the structure and data stored within XML file generated by FileWatcher's create inventory process.

What is stored

All inventory information is stored within a single XML file (see example below). This file contains details about the inventory itself and also the items included in the inventory.

If not manually specified, FileWatcher will automatically generate a filename based on the system's current date and time.

Inventory Information

The first XML node within inventory file is inventoryInformation. This is used to hold details about the inventory.

Item Explanation
name The name of the inventory. If not is not manually specified, then a name will automatically be generated based on the current system date and time.
description A short description of the inventory.
folderPath The path to the root of the folder being inventoried
ident A notionally unique identifier for the inventory. This is for use in future versions of FileWatcher.
fileCount The number of files included in the inventory.
folderCount The number of folders included in the inventory.
fileSize The total filesize in bytes of all files included in the inventory.
version The version of FileWatcher used to generate the inventory.

Inventory items (files and folders)

An inventory item is the name for an individual XML node used to hold attributes for an inventoried file or folder.

Item Description
type The 'type' of the entry. This is either file or folder.
fullPath The full path to the item
relativePath The relative path to the item from the inventory's folderPath.
size The total size of the item in bytes.
created The filesystem's recorded creation date and time for the item
lastModified The filesystem's recorded date and time of last modification of the item.
checksum The alphanumberic checksum for an item. This only applies for files and will be empty for folders.

Example of an inventory

In the example below, an inventory was created against the folder D:\Testing\FolderToInventory

<?xml version="1.0" encoding="utf-8"?>
<inventory>
  <inventoryInformation>
    <name>New Inventory 18 Jan 2019 11:32:21</name>
    <description>Invoked From command line on 18 Jan 2019 at 11:32:21</description>
    <folderPath>D:\Testing\FolderToInventory</folderPath>
    <ident>Inventory-18-Jan-2019_113221</ident>
    <fileCount>12</fileCount>
    <folderCount>2</folderCount>
    <fileSize>7244406</fileSize>
  </inventoryInformation>
  <inventoryItem>
    <type>Folder</type>
    <fullPath>D:\Testing\FolderToInventory</fullPath>
    <relativePath>D:\Testing\FolderToInventory</relativePath>
    <size>5387734</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>18/01/2019 11:26:56</lastModified>
    <checksum />
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\03_hd.png</fullPath>
    <relativePath>03_hd.png</relativePath>
    <size>1707208</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>16/05/2011 23:36:23</lastModified>
    <checksum>A0766BB2869543D8EB4DF610DF962EADF2D60AE0B1E7657E980057813DCE455E</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\04_hd.png</fullPath>
    <relativePath>04_hd.png</relativePath>
    <size>1840263</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>16/05/2011 23:36:50</lastModified>
    <checksum>995D98D2D085E2530E78B8C3EC279FA2C4469C5E58B7F571C41982E327D852D6</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\05_hd.png</fullPath>
    <relativePath>05_hd.png</relativePath>
    <size>1840263</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>16/05/2011 23:37:51</lastModified>
    <checksum>995D98D2D085E2530E78B8C3EC279FA2C4469C5E58B7F571C41982E327D852D6</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>Folder</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art</fullPath>
    <relativePath>Classic Fine Art</relativePath>
    <size>1856672</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>18/01/2019 11:26:37</lastModified>
    <checksum />
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\A_Bar_at_the_Folies-Bergere_(Manet).jpg</fullPath>
    <relativePath>Classic Fine Art\A_Bar_at_the_Folies-Bergere_(Manet).jpg</relativePath>
    <size>208183</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:16:41</lastModified>
    <checksum>1F034E98228CE91A2F8540648FC562CCD538C5D1F71F0C3E4AEDBC8211437BEC</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\A_Vanitas_Still_Life_(Claesz).jpg</fullPath>
    <relativePath>Classic Fine Art\A_Vanitas_Still_Life_(Claesz).jpg</relativePath>
    <size>107836</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:17:52</lastModified>
    <checksum>0F4DD093C504E6A2755A818F3701E765541B71A35BB860575940E9E03619076C</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\A_Young_Girl_Reading_(Fragonard).jpg</fullPath>
    <relativePath>Classic Fine Art\A_Young_Girl_Reading_(Fragonard).jpg</relativePath>
    <size>189963</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:17:32</lastModified>
    <checksum>BC8C85C95EA95B492795DA98A658EC059E95B978FDCC4A91685555E534E80F34</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\Adoration_of_the_Magi_(Mantegna).jpg</fullPath>
    <relativePath>Classic Fine Art\Adoration_of_the_Magi_(Mantegna).jpg</relativePath>
    <size>204469</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:18:11</lastModified>
    <checksum>32AB43FDE36C455C41C1EE84AACA159DE471F7795AF5415196FCDEEE1E9C82FB</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\Alexander's_Victory_(Altdorfer).jpg</fullPath>
    <relativePath>Classic Fine Art\Alexander's_Victory_(Altdorfer).jpg</relativePath>
    <size>271022</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:18:25</lastModified>
    <checksum>4CC2468933C22BA82E6F266784588A7A6465275348D2F0FA412C8E0C86ED1390</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\American_Gothic_(Wood).jpg</fullPath>
    <relativePath>Classic Fine Art\American_Gothic_(Wood).jpg</relativePath>
    <size>189510</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:17:19</lastModified>
    <checksum>0272AAE3167526FCAEEFD4169CA8B3F6FFE43918330C4BF760AAED859267AE36</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\Aristotle_Contemplating_the_Bust_of_Homer_(Rembrandt).jpg</fullPath>
    <relativePath>Classic Fine Art\Aristotle_Contemplating_the_Bust_of_Homer_(Rembrandt).jpg</relativePath>
    <size>193777</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:16:46</lastModified>
    <checksum>232D2C082D059FE8B2F0AEDC37FC54CC4E370C658E68347683413D42B383E7E8</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\Bathing_at_Asniers.jpg</fullPath>
    <relativePath>Classic Fine Art\Bathing_at_Asniers.jpg</relativePath>
    <size>246152</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:19:52</lastModified>
    <checksum>AD30BCE18057AA5ACBF2D4FAB2CCDA3A9E2D75520039E9D4C42C6869618239E7</checksum>
  </inventoryItem>
  <inventoryItem>
    <type>File</type>
    <fullPath>D:\Testing\FolderToInventory\Classic Fine Art\Thumbs.db</fullPath>
    <relativePath>Classic Fine Art\Thumbs.db</relativePath>
    <size>245760</size>
    <created>18/01/2019 11:26:37</created>
    <lastModified>08/02/2008 00:23:23</lastModified>
    <checksum>6D9E368A90D4CD284A7BF5BE420C38B31137E851EEF7199C331BFCF03F2CB318</checksum>
  </inventoryItem>
</inventory>
     
Copyright © 2011 - 2024 Calzada Media Limited. All Rights Reserved