Advertisement
LoonerSF

example file send

Sep 16th, 2012
1,825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1.  
  2. File myFile = new File(thisIsRootDirString);
  3. while(!done){
  4.    if(myFile.isDirectory()){
  5.       listFiles = myFile.list();
  6.      //I guess take the name of the directory, add it to another string and iterate through the list of files
  7.      //and at the end send the directory to reconstruct the directory structure on the client side
  8.    }else{
  9.        //send the file?
  10.    }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement