<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../plugin.xsl" type="text/xsl"?>
<plugin name="FileHandler">
  <object class="org.ow2.isac.plugin.filehandler.SessionObject">
    <params />
    <help>Provides conditions and controls for handling files and directories.
Some file attibutes are available through variable expressions ${pluginId:/some/path;attribute}, where attribute is one of the following:
- size (file size in number of bytes)
- ctime (file creation time in ms)
- mtime (file last modification time in ms)
Example: ${myFileHandler:/some/path;size}</help>
  </object>
  <test name="exists" number="0">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the given path exists, false otherwise.</help>
  </test>
  <test name="existsNot" number="1">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the given path does not exist, false otherwise.</help>
  </test>
  <test name="readable" number="2">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the file at the given path is readable, false otherwise.</help>
  </test>
  <test name="notReadable" number="4">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the file at the given path is not readable, false otherwise.</help>
  </test>
  <test name="writeable" number="3">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the file at the given path is writeable, false otherwise.</help>
  </test>
  <test name="notWriteable" number="5">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the file at the given path is not writeable, false otherwise.</help>
  </test>
  <test name="isDir" number="6">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the given path is a directory, false otherwise.</help>
  </test>
  <test name="isFile" number="7">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the given path is a file, false otherwise.</help>
  </test>
  <test name="isLink" number="8">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the given path is a symbolic link, false otherwise.</help>
  </test>
  <test name="isNotLink" number="9">
    <params>
      <param name="path" type="String" />
    </params>
    <help>True if the given path is not a symbolic link, false otherwise.</help>
  </test>
  <control name="deleteFiles" number="10">
    <params>
      <param name="paths" type="String" />
    </params>
    <help>Delete files.</help>
  </control>
  <control name="deleteEmptyDir" number="11">
    <params>
      <param name="path" type="String" />
    </params>
    <help>Delete an empty directory.</help>
  </control>
</plugin>

