synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vijayaratha vijayasingam <vijayara...@gmail.com>
Subject Clarification need for VFSTransportListener scanFileOrDirectory() function..
Date Thu, 26 Jul 2012 12:44:35 GMT
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