Verify if the file indicated in the path can be read.

1 file.canRead

<file.canRead>
    <file /> !
</file.canRead>
Example

Verify if a file can be read.

Copy
<xsql-script name='file_canRead_sample1'>
    <body>
        <set name='m_path'>
            <string>c:<file.separator />tmp<file.separator />source<file.separator />deister.txt</string>
        </set>
        <if>
            <expr>
                <file.canRead>
                    <file name='#m_path' type='absolute' />
                </file.canRead>
            </expr>
            <then>
                <set name='m_result'>can be read</set>
            </then>
            <else>
                <set name='m_result'>cannot be read</set>
            </else>
        </if>
        <println><m_path/> <m_result/></println>
    </body>
</xsql-script>

c:\tmp\source\deister.txt can be read.