package de.jgholland.directorymesh.utilities;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by john on 2015-10-28.
 */
public class MasterDataDirectoryPaths {

    public String masterDirectoryPathString;
    public String dataDirectoryPathString;
    Path masterDirectoryPath;
    Path dataDirectoryPath;

    public MasterDataDirectoryPaths(Path masterDirectoryPath, Path dataDirectoryPath) {
        this.masterDirectoryPath = masterDirectoryPath;
        this.dataDirectoryPath = dataDirectoryPath;
        masterDirectoryPathString = masterDirectoryPath.toString();
        dataDirectoryPathString = dataDirectoryPath.toString();
    }

    public MasterDataDirectoryPaths(String masterDirectoryPathString, String dataDirectoryPathString) {
        this(Paths.get(masterDirectoryPathString), Paths.get(dataDirectoryPathString));
    }

    public Path pathInDirectory(Path directory, Path path) {
        return Paths.get(directory.toString(), path.toString());
    }

    public Path pathInMasterDirectory(Path path) {
        return pathInDirectory(masterDirectoryPath, path);
    }

    public Path pathInMasterDirectory(String path) {
        return pathInMasterDirectory(Paths.get(path));
    }

    public Path pathInDataDirectory(Path path) {
        return pathInDirectory(dataDirectoryPath, path);
    }

    public Path pathInDataDirectory(String path) {
        return pathInDataDirectory(Paths.get(path));
    }


}

@@ -410,24 +410,25 @@
 toryPath) %7B%0A
+%0A
         this
@@ -762,24 +762,25 @@
 thString) %7B%0A
+%0A
         this
@@ -915,32 +915,33 @@
 y, Path path) %7B%0A
+%0A
         return P
@@ -1039,32 +1039,33 @@
 ry(Path path) %7B%0A
+%0A
         return p
@@ -1159,32 +1159,33 @@
 (String path) %7B%0A
+%0A
         return p
@@ -1271,32 +1271,33 @@
 ry(Path path) %7B%0A
+%0A
         return p
@@ -1336,32 +1336,32 @@
 , path);%0A    %7D%0A%0A
-
     public Path 
@@ -1395,16 +1395,17 @@
 path) %7B%0A
+%0A
         

add some extra newlines