Everything is working fine but for some reason, when I use the 'ls' command, the Server.java and Server.class files are not being shown. Here's the code for my ls part, I am able to see other class files and text files but just not the server files.
else if (line.equals("ls")) {
try{
DirectoryStream<Path> directoryStream = Files.newDirectoryStream(path);
for(Path entry: directoryStream)
out.writeBytes(entry.getFileName() + "\n");
out.writeBytes("\n");
}
catch(Exception e){
out.writeBytes("Invalid command");
}
}