Skip to content

Commit

Permalink
Merge pull request #5 from kabukky/development
Browse files Browse the repository at this point in the history
Fixed: Creation of plugin directory if it doesn't exist.
  • Loading branch information
kabukky committed Apr 25, 2015
2 parents 4e05162 + 495b51f commit eddfea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filenames/filenames.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func init() {
}

func createDirectories() error {
paths := []string{filepath.Join(flags.CustomPath, "content", "data"), filepath.Join(flags.CustomPath, "content", "themes"), filepath.Join(flags.CustomPath, "content", "images"), filepath.Join(flags.CustomPath, "content", "https")}
paths := []string{filepath.Join(flags.CustomPath, "content", "data"), filepath.Join(flags.CustomPath, "content", "themes"), filepath.Join(flags.CustomPath, "content", "images"), filepath.Join(flags.CustomPath, "content", "https"), filepath.Join(flags.CustomPath, "content", "plugins")}
for _, path := range paths {
if _, err := os.Stat(path); os.IsNotExist(err) {
log.Println("Creating " + path)
Expand Down

0 comments on commit eddfea1

Please sign in to comment.