Implement a Multi-Threaded File Server that supports UPLOAD, DOWNLOAD, DELETE, and RENAME file operations. Use different folders to hold files downloaded to the client or uploaded to the server.
- Upload selected file from client to sever
- Delete a given file from server
- Rename server file
- Download the file from the client
1.Open Terminal
2.Go to Downloaded Project Directory
Perform the below operation to start the server
1.cd DSCode/MultithreadFileSystem/src
2.javac *.java
3.java FileServer
Open New Terminal and Run the below command to start the Helper Thread.
1.cd DSCode/MultithreadFileSystem/src
2.javac *.java
3.java MultiThreadClient
When we run the client MultiThreadClient
it will ask for the Operation we want to perform.
Below is the input format.
UPLOAD abs.pdf
UPLOAD file.pdf
Note: abs.pdf and file.pdf already present in the client folder
A file abs.pdf
should be present in the folder DSCode/MultithreadFileSystem/src/serverfiles
DOWNLOAD file.pdf
A file file.pdf
should be present in the folder DSCode/MultithreadFileSystem/src/clientfiles/download
RENAME file.pdf f.pdf
Go to folder DSCode/MultithreadFileSystem/src/serverfiles
a file f.pdf must be presnet.
DELETE f.pdf
Go to folder DSCode/MultithreadFileSystem/src/serverfiles
a file f.pdf must be deleted.