commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LVXIAOYI <bgl...@hotmail.com>
Subject [vfs] the performance of Common VFS.....
Date Thu, 12 May 2011 10:06:09 GMT









Hi,

I use Common VFS to connect to a  FTP server and want to list all sub directorys like below
code:

//init FileSystemManager
FileSystemManager fsManager= VFS.getManager();

//init first FileObject, the 'logo ' direcotry has more than 5000 sub-dirctorys 
FileObject dirctory = fsManager.fsManager.resolveFile("ftp://test_user:test_pwd@10.1.3.67:21/opt/yue/product/cmc/logo");

//to list all sub-directorys. Here has a performance problem, the thread is running all the
time, not result returned
FileObject[] subDirectorys = dirctory .getChildren();

So,  could anybody give me some advice?

Thanks

Joey



 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message