Storing items from different Publications in separate subfolders

Content Delivery stores all files destined for storage on the file system in the same location. You can specify to store items from different Publications in separate subfolders by setting the defaultFilesystem attribute to true in the Storage element.

About this task

By default, all published items are placed in the one folder specified in the <Root Path="" /> child element.

Procedure

  1. Open cd_storage_conf.xml located in the config\ subdirectory of your Content Delivery root location in a plain-text editor or XML editor.
  2. In the Storage element, set the defaultFilesystem attribute to true:
    <Storage Type="filesystem" Id="LocalFileSystem_01" defaultFilesystem="true" defaultStorage="true"
    	Class="com.tridion.storage.filesystem.FSDAOFactory">
    	<Root Path="c:\incoming\" />
    </Storage>
    where Path="c:\incoming\" is the absolute path to the root folder of your storage location.
  3. Save and close the cd_storage_conf.xml file.

Results

When you set defaultFilesystem="true", items from different Publications are stored in separate subfolders. The subfolders are created in the location indicated by the Path attribute using the name PubID, where ID is the ID of the Publication. For example, if <Root Path="c:\incoming\", then items published from a Publication with ID 23 are stored in the folder c:\incoming\Pub23\.