Update filecheck

This commit is contained in:
Mike Reeves
2022-11-30 11:02:56 -05:00
committed by GitHub
parent 117a3d486a
commit f83545c556

View File

@@ -6,6 +6,7 @@
# Elastic License 2.0.
import os
import shutil
import time
import hashlib
import logging
@@ -51,7 +52,7 @@ def process(filename, hizash):
head, tail = os.path.split(filename)
# Move the file
os.rename(filename, strelkapath + tail)
shutil.move(filename, strelkapath + tail)
class CreatedEventHandler(FileSystemEventHandler):
def on_created(self, event):
@@ -76,4 +77,4 @@ if __name__ == "__main__":
observer.stop()
observer.join()
logging.info("Exiting filecheck")
logging.info("Exiting filecheck")