From cbee59de2b8fabe93e1f416dfff4626e32a04610 Mon Sep 17 00:00:00 2001 From: Gerald Date: Tue, 3 Nov 2015 23:44:50 +0800 Subject: [PATCH] Use system independent file separator. Fix #30 --- src/main/java/backend/Storage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/backend/Storage.java b/src/main/java/backend/Storage.java index 2f14a0c..472af90 100644 --- a/src/main/java/backend/Storage.java +++ b/src/main/java/backend/Storage.java @@ -14,8 +14,8 @@ public class Storage { public static final String DEFAULT_SAVE_DIRECTORY = "collated"; - private static final String SAVE_DIRECTORY_FORMAT = "%s\\collated"; - private static final String COLLATED_FILE_PATH_FORMAT = "%s\\%s.md"; + private static final String SAVE_DIRECTORY_FORMAT = "%s" + File.separator + "collated"; + private static final String COLLATED_FILE_PATH_FORMAT = "%s" + File.separator + "%s.md"; private static final String ERROR_FILE_NOT_FOUND = "File was not found: %s"; private String saveFolder;