Android Open Source - Metascan-Online Folder Scan






From Project

Back to project page Metascan-Online.

License

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.

Java Source Code

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());
          }
        }
      }
    }
  }




Java Source Code List

com.opswat.metascan.DBTable.java
com.opswat.metascan.DirectoryChooserDialog.java
com.opswat.metascan.DownloadListener.java
com.opswat.metascan.FolderScan.java
com.opswat.metascan.HttpPostReceive.java
com.opswat.metascan.MainActivity.java
com.opswat.metascan.MySQLiteDB.java
com.opswat.metascan.ObserverService.java
com.opswat.metascan.ParseJSON.java
com.opswat.metascan.PostDataAsyncTask.java
com.opswat.metascan.RecursiveFileObserver.java
com.opswat.metascan.Results.java
com.opswat.metascan.Scan.java
com.opswat.metascan.Settings.java
com.opswat.metascan.TabAdapter.java
processing.files.SelectActivity.java
processing.files.SelectMode.java