Vizard 7 » Command Index » Vizard modules » viz » <viz:res>.addPublishDirectory
7.7

<viz:res>.addPublishDirectory

Recursively add all files in a directory to the publish dependency list

<viz:res>.addPublishDirectory(  
directory  
pattern = '*'  
)  
directory
Path to existing directory. Can be a relative path.
pattern = '*'
Pattern describing which files should be added.

Remarks

Use the pattern to filter out which files you want to add. For example, if you only want to add jpg files use '*.jpg'

Return Value

None

Example

#Add all files in images subfolder
viz.res.addPublishDirectory('./images')

See also

<viz:res>.addPublishFile
<viz:res>.addPublishFileLoader
<viz:res>.addPublishFilter
<viz:res>.addPublishImageLoaders
<viz:res>.getPublishedPath