Create file and folder structures for hotfolders. An XSLT-based import module.


Purpose

  • Administrators want to use the names of files and folders in a hotfolder to identify all assets already imported and to use it for asset metadata.
  • Users want to put a file and folder structure into a hotfolder to get the same asset structure with group assets for the folder.
  • Users want to put Adobe InDesign documents with placed images into a hotfolder to create Adobe InDesign assets with placed picture assets. Find the  I/O XSLT commands.

Context

Server Module: XSLT Import Interface

Configuration

List

List all files and folders of a given file reference.

Syntax:

<cs:command name="com.censhare.api.io.List”> 
<cs:param name=“source” select=“’censhare:///service/filesystem/temp/hotfolder1’”/> 
<cs:param name=“filter” select=“’*.jpg’”/>  — optional parameter </cs:command>
XML

Result:

<list url=“censhare:///service/filesystem/temp/hotfolder1”>
 <item name=“test.jpg” url=“censhare:///service/filesystem/temp/hotfolder1/test.jpg” 
        type=“file” creation-date=“2013-07-11T12:11:19Z” modified-date=“2013-07-11T12:11:19Z” length=“154482”/>
 <item name=“test1.jpg” url=“censhare:///service/filesystem/temp/hotfolder1/test/test.jpg” 
        type=“file” creation-date=“2013-07-11T12:11:19Z” modified-date=“2013-07-11T12:11:19Z” length=“154482”/>
 <item name=“images” url=“censhare:///service/filesystem/temp/hotfolder1/test/images”
       type=“directory” creation-date=“2013-07-11T12:11:19Z” modified-date=“2013-07-11T12:11:19Z”/> </list>
XML

Delete

Delete a given file or folder.

Syntax:

<cs:command name="com.censhare.api.io.Delete”> 
 <cs:param name=“source” select=“censhare:///service/filesystem/temp/hotfolder1/test.jpg”/> 
</cs:command>
XML

Move

Move any given file or folder to a given destination.

Syntax:

<cs:command name="com.censhare.api.io.Move”>
 <cs:param name=“source” select=“censhare:///service/filesystem/temp/hotfolder1/test.jpg”/>
 <cs:param name=“dest” select=“censhare:///service/filesystem/temp/hotfolder2”/>
</cs:command>
XML

Rename

Rename any given file or folder to a given name.

Syntax:

<cs:command name="com.censhare.api.io.Rename”>
 <cs:param name=“source” select=“censhare:///service/filesystem/temp/hotfolder1/test.jpg”/>
 <cs:param name=“dest” select=“test2.jpg”/>
</cs:command>
XML