<?xml version="1.0" encoding="utf-8"?>
<KScriptSetting>
  <Name>FileInfo</Name>
  <Description>Information of a file</Description>
  <Example> <![CDATA[
 <script engine="kscript">  
    var allfiles = k.file.getAllFiles(); 
</script> 
    <table border="1" cellspacing="1" cellpadding="5">
        <tbody>
            <tr><th>FileName</th><th>FullPath</th><th>Size</th><th>Preview</th>
            </tr>
            <tr k-foreach="item allfiles" k-repeat-self="true">
                <td k-content="item.name">name</td>
                <td k-content="item.fullName">name</td>
                <td k-content="item.stringSize">size</td>
                <td><a target="_blank" k-href="item.absoluteUrl">Preview</a></td>
            </tr>
        </tbody>
    </table>]]> 
  </Example> 

  <Props>
    <Property>
      <Name>name</Name>
      <Description>File name</Description>
      <Type>string</Type>
    </Property>

    <Property>
      <Name>fullName</Name>
      <Description>Full relative File name includes folders</Description>
      <Type>string</Type>
    </Property>
     
    <Property>
      <Name>size</Name>
      <Description>the byte length</Description>
      <Type>number</Type>
    </Property>

    <Property>
      <Name>relativeUrl</Name>
      <Description>Relative url</Description>
      <Type>string</Type>
    </Property>


    <Property>
      <Name>url</Name>
      <Description>Same as relative url</Description>
      <Type>string</Type>
    </Property>

    <Property>
      <Name>absoluteUrl</Name>
      <Description>AbsoluteUrl includes http and website domain</Description>
      <Type>string</Type>
    </Property>

    <Property>
      <Name>lastModified</Name>
      <Description>Last modified time</Description>
      <Type>Date time</Type>
    </Property>
  </Props>
  <Methods>
 
    
  </Methods>
</KScriptSetting>