I modified the test script to monitor network connection file creation and deletion and the events aren't firing. I tested with a different user directory and it worked. This leads me to believe it is a permissions issue. Any thoughts on how to make this work?
`#!/usr/bin/env python3
import time
import os
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class Watcher:
DIRECTORY_TO_WATCH = '/proc/sys/net/ipv4/conf/'
I modified the test script to monitor network connection file creation and deletion and the events aren't firing. I tested with a different user directory and it worked. This leads me to believe it is a permissions issue. Any thoughts on how to make this work?
`#!/usr/bin/env python3 import time import os from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler
class Watcher: DIRECTORY_TO_WATCH = '/proc/sys/net/ipv4/conf/'
class Handler(FileSystemEventHandler):
if name == 'main': w = Watcher() w.run()`