Copy all directories to server by FTP using Java

前端 未结 2 1666
故里飘歌
故里飘歌 2021-02-06 10:23

I need to copy a directory from the local disk to a server. The directory contains a lot of directories, subdirectories, and files. (Think of a hierarchy tree of directories).<

2条回答
  •  故里飘歌
    2021-02-06 10:39

    upload(fileName){
      If (filename is not dir){
       ftpFile();
       return;
     }
     listoffiles = get the list of all files in dir 
        for each file : listoffiles {
        upload(file)
     }
    

    }

提交回复
热议问题