mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
only check files on inotify
This commit is contained in:
@@ -74,6 +74,7 @@ def process(filename, hizash):
|
|||||||
class CreatedEventHandler(FileSystemEventHandler):
|
class CreatedEventHandler(FileSystemEventHandler):
|
||||||
def on_created(self, event):
|
def on_created(self, event):
|
||||||
filename = event.src_path
|
filename = event.src_path
|
||||||
|
if os.path.isfile(filename):
|
||||||
logging.info("Found new file: " + filename)
|
logging.info("Found new file: " + filename)
|
||||||
checksum(filename)
|
checksum(filename)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user