display folder name if it does exist (use as single token)
{mpf:dir=myfolderpath}
display path of containing folder for given file (use as single token)
sometimes it is useful to get the folder-path of a file. the following example returns "E:/temp/" only if file does exist
{mpf:dir=E:/temp/test.swx}
display a list of files (use with closing token)
{mpf:dir=myfolderpath}
... {mpf:dir/type||==file} {mpf:dir/name} {/mpf:dir/type||==file}...
{/mpf:dir=myfolderpath}
display a list of folders (use with closing token)
{mpf:dir=myfolderpath}
... {mpf:dir/type||==dir} {mpf:dir/name} {/mpf:dir/type||==dir}...
{/mpf:dir=myfolderpath}
store folder name in myVar, if it does exist (use as embedded token)
{mpf:set=myVar||{mpf:dir=myfolderpath}}
|