diff --git a/src/client/Client.java b/src/client/Client.java new file mode 100644 index 0000000..3005e2a --- /dev/null +++ b/src/client/Client.java @@ -0,0 +1,10 @@ +package client; + +public class Client { + public Client() { + + } + public static void main(String [] args) { + Client c = new Client("client"); + } +} diff --git a/src/client/ClientManagement.java b/src/client/ClientManagement.java new file mode 100644 index 0000000..967d31a --- /dev/null +++ b/src/client/ClientManagement.java @@ -0,0 +1,17 @@ +package client; +import exception.NotFound; + +public class ClientManagment { + private String baseDirectory; + public ClientManagment(String baseDirectory) { + this.baseDirectory = baseDirectory; + } + + public void download(String filename) throws NotFound { + } + + public String listDirectory() { + + } + +} diff --git a/src/exception/NotFound.java b/src/exception/NotFound.java new file mode 100644 index 0000000..172a0bc --- /dev/null +++ b/src/exception/NotFound.java @@ -0,0 +1,2 @@ +package exception; +public class NotFound extends Exception {} diff --git a/src/server/Server.java b/src/server/Server.java new file mode 100644 index 0000000..e3b1757 --- /dev/null +++ b/src/server/Server.java @@ -0,0 +1,12 @@ +package Server; + +public class Server { + + public Server() { + + } + public static void main(String [] args) { + Server s = new Server("server"); + } + +} diff --git a/src/server/ServerManagement.java b/src/server/ServerManagement.java new file mode 100644 index 0000000..dd09361 --- /dev/null +++ b/src/server/ServerManagement.java @@ -0,0 +1,22 @@ +package server; +import exception.NotFound; +import java.util.Vector; + +public class ServerManagement { + + private Vector fileList; + private String baseDirectory; + + public ServerManagement(String baseDirectory) { + this.baseDirectory = baseDirectory; + fileList = new Vector; + initFileList(); + } + + public void upload(String filename) throws NotFound { + } + + public String listDirectory() { + + } +}