Permit directory removal during static sync - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b0b4b821651c7fa2866816ced0c1a1a52ca094ed
 (DIR) parent db18fd1582a7f7b1697629219d7a31dc92f829b2
 (HTM) Author: Steve Francia <steve.francia@gmail.com>
       Date:   Tue, 26 Jan 2016 14:11:22 -0500
       
       Permit directory removal during static sync
       
       Diffstat:
         M commands/hugo.go                    |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git 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)