|
|
|
@ -245,16 +245,16 @@ public abstract class ClientManagement extends ServeErrors implements Runnable {
|
|
|
|
|
else{
|
|
|
|
|
int j = Integer.parseInt(f);
|
|
|
|
|
if(j <= list.length){
|
|
|
|
|
j = j-1;
|
|
|
|
|
j--;
|
|
|
|
|
download(list[j]);
|
|
|
|
|
System.out.println("File " + f + " sucessfully downloaded");
|
|
|
|
|
writeLog("File " + f + " sucessfully downloaded", LogLevel.Info);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
System.out.println("Wrong number");
|
|
|
|
|
System.out.println("File " + f + " unsucessfully downloaded, wrong number");
|
|
|
|
|
writeLog("File " + f + " unsucessfully downloaded, wrong number", LogLevel.Info);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//download(f);
|
|
|
|
|
System.out.println("File " + f + " sucessfully downloaded");
|
|
|
|
|
writeLog("File " + f + " sucessfully downloaded", LogLevel.Info);
|
|
|
|
|
} catch (EmptyDirectory e) {
|
|
|
|
|
writeLog("Server has no file in directory", LogLevel.Error);
|
|
|
|
|
} catch (InternalError e) {
|
|
|
|
|