Setting Up Info File Parameters

The folderinfo.xml file is used to represent the structure and contents of a particular folder. This file can be used in the following cases:

·     The real folder name can be replaced by a virtual display name.

·     The real file name can be replaced by a virtual display name.

·     You can decide which files inside a specific folder will be visible in the repository and which files will be hidden.

·     You can define a custom thumbnail icon for a file.

The folderinfo.xml file has the following structure:

<FolderInfo>

   <subfolders>

     <folder folderName="<Folder Name>" path="<Folder
     Path>" iconClass="fileExtensionFolder"
     iconPath=""></folder>

   </subfolders>

   <files>

     <file fileName="<File Name>" extension="<File
     Extension>" path="<File Path>" iconClass="<File
     Extension Type>"iconPath="<Icon Path>"></file>

   </files>

</FolderInfo>

 

Parameter

Value

folderName

The display name of a folder. The display name can be different from the actual folder name.

path

The actual file or folder path. The path must be located under the folder in which the folderinfo.xml resides.

iconClass

When defining the folder parameters, the iconClass parameter must have fileExtensionFolder value.

When defining the file parameters, the iconClass parameter must have fileExtension<Extension Type> value, for example fileExtensionpptx, if the file extension is PPTX.

iconPath

The full path to the location of the icon file.

fileName

The display name of a file. The display name can be different from the actual file name.

extension

The file extension. For example, PPTX, PPT, DOCX, DOC, PDF.

Example

In the following example, we set the Document Repository to contain a folder named Giftcards with a file named Birthday.pptx. The file has a thumbnail icon which is located at https://play.google.com/intl/en-US_us/about/images/giftcards/birthday_120x120.png.

<FolderInfo>

   <subfolders>

     <folder folderName="Giftcards" path="My Files"
     iconClass="
fileExtensionFolder" iconPath="">
     </folder>

   </subfolders>

   <files>

     <file fileName="Birthday" extension="pptx"
     path="
Projects/Giftcards/Birthday.pptx"
     iconClass="
fileExtensionpptx" iconPath="https://
     play.google.com/intl/en-US_us/about/images/
     giftcards/birthday_120x120.png
"></file>

   </files>

</FolderInfo>