Skip to content
Snippets Groups Projects
Commit 9d358091 authored by Stefan Rosenlund's avatar Stefan Rosenlund
Browse files

Changed paths for platform independence

parent 3e91f1dd
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ public class Server {
public byte[] getFileContent(String path) {
byte[] fileContent = new byte[1];
try {
fileContent = Files.readAllBytes(Paths.get(this.directory + "/" + path));
fileContent = Files.readAllBytes(Paths.get(this.directory + System.getProperty("file.separator") + path));
} catch (IOException e) {
System.err.println("Error during reading of file!");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment