int postFiles(File[] files,OutputStream out,String type){
  int filesPosted=0;
  for (  File srcFile : files) {
    try {
      if (!srcFile.isFile() || srcFile.isHidden())       continue;
      postFile(srcFile,out,type);
      Thread.sleep(delay * 1000);
      filesPosted++;
    }
 catch (    InterruptedException e) {
      throw new RuntimeException(e);
    }
  }
  return filesPosted;
}

int postFiles ( File [ ] files , OutputStream out , String type ) { int filesPosted = 0 ; for ( File srcFile : files ) { try { if ( ! srcFile . isFile ( ) || srcFile . isHidden ( ) ) continue ; postFile ( srcFile , out , type ) ; Thread . sleep ( delay * 1000 ) ; filesPosted ++ ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } } return filesPosted ; }
posts a list of file names
