Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Francia <steve.francia@gmail.com>2016-01-26 22:11:22 +0300
committerSteve Francia <steve.francia@gmail.com>2016-01-26 22:33:56 +0300
commitb0b4b821651c7fa2866816ced0c1a1a52ca094ed (patch)
tree62998c2e10e3aebcf6610718695f6b6a3fff1b4c
parentdb18fd1582a7f7b1697629219d7a31dc92f829b2 (diff)
Permit directory removal during static sync
-rw-r--r--commands/hugo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 35acbf290..1fd107285 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -776,7 +776,7 @@ func NewWatcher(port int) error {
// If file doesn't exist in any static dir, remove it
toRemove :=filepath.Join(publishDir, relPath)
jww.FEEDBACK.Println("File no longer exists in static dir, removing", toRemove)
- hugofs.DestinationFS.Remove(toRemove)
+ hugofs.DestinationFS.RemoveAll(toRemove)
} else if err == nil {
// If file still exists, sync it
jww.FEEDBACK.Println("Syncing", relPath, "to", publishDir)