package make

import (
	"fmt"
	log "github.com/Sirupsen/logrus"
	"os"
	"strings"
	"time"
)

// InstallFileSystem installs a basic private file system for any given input.
func (Site *Site) InstallFileSystem(DirectoryPath string) {
	// Test the file system, create it if it doesn't exist!
	dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.TimeStampGet(), "sites", Site.Name, DirectoryPath}, "/"))
	_, err := os.Stat(dirPath + "/" + dirPath)
	if err != nil {
		dirErr := os.MkdirAll(dirPath, 0755)
		if dirErr != nil {
			log.Errorln("Couldn't create file system at", dirPath, dirErr)
		} else {
			log.Infoln("Created file system at", dirPath)
			time.Sleep(1 * time.Second)
		}
	}
}

package make

import (
	"fmt"
	log "github.com/Sirupsen/logrus"
	"os"
	"strings"
	"time"
)

// InstallFileSystem installs a basic private file system for any given input.
func (Site *Site) InstallFileSystem(DirectoryPath string) {
	// Test the file system, create it if it doesn't exist!
	dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.Domain + ".latest", "sites", Site.Name, DirectoryPath}, "/"))
	_, err := os.Stat(dirPath + "/" + dirPath)
	if err != nil {
		dirErr := os.MkdirAll(dirPath, 0755)
		if dirErr != nil {
			log.Errorln("Couldn't create file system at", dirPath, dirErr)
		} else {
			log.Infoln("Created file system at", dirPath)
			time.Sleep(1 * time.Second)
		}
	}
}

--- 
+++ 
@@ -11,7 +11,7 @@
 // InstallFileSystem installs a basic private file system for any given input.
 func (Site *Site) InstallFileSystem(DirectoryPath string) {
 	// Test the file system, create it if it doesn't exist!
-	dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.Domain + ".latest", "sites", Site.Name, DirectoryPath}, "/"))
+	dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.TimeStampGet(), "sites", Site.Name, DirectoryPath}, "/"))
 	_, err := os.Stat(dirPath + "/" + dirPath)
 	if err != nil {
 		dirErr := os.MkdirAll(dirPath, 0755)
Change path to install file systems - should not be created inside non-existant folder.
