synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vijayaratha vijayasingam <vijayara...@gmail.com>
Subject Re: Clarification need for VFSTransportListener scanFileOrDirectory() function..
Date Fri, 27 Jul 2012 05:48:40 GMT
That condition is defined to process a file..Not for folders..

eg:  <parameter
name="transport.vfs.FileURI">file:///C:/Users/TOSHIBA/Desktop/test/in/test.xml</parameter>

Thanks..
-Ratha

On 26 July 2012 18:14, vijayaratha vijayasingam <vijayaratha@gmail.com>wrote:

> hi all;
> In the vfs transport listener implementation,  scanFileOrDirectory()
> function is defined to search for files in the filesystem, where to scan
> children of a folder Fileobject.getChildren() function is used.
> In that particular function one condition is used as follows;
>
>   // if this is a file that would translate to a single message
>                 if (children == null || children.length == 0) {
>                          ..........................
>                       //do process
>
>                     }
> Im not quite sure , why this condition is used/for what purpose..If we
> don't have any content in a folder why do we need to do  further check on
> that?
>
> Thanks
> -Ratha
>
>

Mime
View raw message