package spark.staticfiles;

import static spark.utils.StringUtils.removeLeadingAndTrailingSlashesFrom;

/**
 * Created by Per Wendel on 2016-11-05.
 */
public class StaticFilesFolder {

    private static volatile String local;
    private static volatile String external;

    public static final void localConfiguredTo(String folder) {

        local = removeLeadingAndTrailingSlashesFrom(folder);
    }

    public static final void externalConfiguredTo(String folder) {

        external = removeLeadingAndTrailingSlashesFrom(folder);
    }

    public static final String local() {
        return local;
    }

    public static final String external() {
        return external;
    }


}

@@ -98,16 +98,45 @@
 esFrom;%0D
+%0Aimport java.nio.file.Paths;%0D
 %0A%0D%0A/**%0D%0A
@@ -506,32 +506,40 @@
 ring folder) %7B%0D%0A
+        
 %0D%0A        extern
@@ -571,38 +571,120 @@
 lingSlashesFrom(
-folder
+%0D%0A            Paths.get(folder).toAbsolutePath().toString().replace(%22%5C%5C%22, %22/%22)%0D%0A        
 );%0D%0A    %7D%0D%0A%0D%0A   

Make external static folder be *nix like