Skip to content

Commit

Permalink
Permit directory removal during static sync
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Jan 26, 2016
1 parent db18fd1 commit b0b4b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/hugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0b4b82

Please sign in to comment.