mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Permit directory removal during static sync
This commit is contained in:
parent
db18fd1582
commit
b0b4b82165
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue