Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cns/fsnotify/fsnotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type watcher struct {
// Create the AsyncDelete watcher.
func New(cli releaseIPsClient, path string, logger *zap.Logger) *watcher { //nolint
// Add directory where intended deletes are kept
if err := os.Mkdir(path, 0o755); err != nil { //nolint
if err := os.MkdirAll(path, 0o755); err != nil { //nolint
logger.Error("error making directory", zap.String("path", path), zap.Error(err))
}
return &watcher{
Expand Down