Skip to content
Snippets Groups Projects
Commit d485aa1b authored by Ibrahima Balde's avatar Ibrahima Balde
Browse files

debut ReadMe

parent baf325f8
Branches
Tags
No related merge requests found
......@@ -42,26 +42,6 @@ public class ClientFtp {
return this.reader.readLine();
}
public void readListServer() throws IOException {
String content;
System.out.println("hello1");
while ( (content = this.reader.readLine() ) != null){
System.out.println("hello");
System.out.println(content);
}
}
/*
public void sendCommandPasv( Command command ){
this.printer.println(command.command());
}
*/
public void sendCommand(Command command){
......
......@@ -32,7 +32,6 @@ public class ServerConnect {
public static void getTree(ClientFtp connection , String lineUp) throws IOException {
//OutputStream out = socket.getOutputStream();
// connection en mode passif
Pasv commandPassive = new Pasv();
connection.sendCommand(commandPassive);
......@@ -43,9 +42,6 @@ public class ServerConnect {
// recuperation du port
int port = commandPassive.getPort(passive);
//System.out.println("Vous êtes connecter à l'adresse ip : " + ip);
//System.out.println("Vous êtes connecter au port : " + port);
Socket socketServer = new Socket( ip, port );
// Envoie de la commande LIST
Command ls = new List();
......@@ -54,11 +50,9 @@ public class ServerConnect {
InputStream in = socketServer.getInputStream();
InputStreamReader in2 = new InputStreamReader(in);
BufferedReader reader = new BufferedReader(in2);
String content;
//System.out.println(reader.readLine() );
while ( (content = reader.readLine() ) != null){
//System.out.println();
System.out.println("|" + lineUp +" " + getFolderName(content) );
if (content.charAt(0) == 'd'){
// Envoie de la commande cwd
......
# ServerFTP_balde
# Application ServerFTPTree
## Auteur:
- Ibrahima BALDE
## Responsable:
- Arthur d'Azemar
Date : 03 fevrier 2021
## Description du projet
Ce projet permet de mettre en œuvre une commande shell permettant d'afficher sur la sortie standard d'un terminal l'arborescence d'un répertoire distant accessible via le protocole applicatif File Transfer Protocol (FTP). Le rendu de l'arborescence distante s'inspirera du formalisme utilisé la commande tree de Linux.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment