Setting up a Folder Structure
Vidispine don’t care where files are located as all information about the files are stored in the database. However, the performance of a file system can be degraded if too many files are stored in the same directory.
This is why Vidispine have several options to create sub-folders for file storage, using either a pre-defined configuration in Vidispine, or by applying your own logic to create the folder structure. The options are documented in the API documentation here.
The simplest solution is to set the configuration property fileHierachy. This can be done for example by making a PUT request to /configuration/properties . See Configuration properties in the APIdocs.
curl -X PUT -d @config.xml -uUSER:PASS -H"Content-Type:application/xml" "localhost:8080/API/configuration/properties"
with the following XML (config.xml).
<ConfigurationPropertyDocument xmlns="http://xml.vidispine.com/schema/vidispine"> <key>fileHierarchy</key> <value>100</value> </ConfigurationPropertyDocument>
var l = "source-"+context.getStorage().getId()+"/"+context.getFileId(); if (context.getExtension() != null) l += "."+context.getExtension();