Back to project page Metascan-Online.
The source code is released under:
Apache License
If you think the Android project Metascan-Online listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.opswat.metascan; /*from ww w . j a v a 2s.co m*/ import java.io.File; import android.content.Context; //import com.example.test.MainActivity.FolderScan; //implementing class to scan folders public class FolderScan { private Context context; public FolderScan(Context c){ context = c; } public void scan(String path){ File folder = new File(path); if(folder.isDirectory()){ for(File file:folder.listFiles()){ if(file.isDirectory()){ FolderScan inner = new FolderScan(context); inner.scan(file.getAbsolutePath()); } else{ PostDataAsyncTask task = new PostDataAsyncTask(context); task.execute(file.getAbsolutePath()); } } } } }