diff --git a/salt/strelka/filecheck/filecheck b/salt/strelka/filecheck/filecheck index ccf0949ee..d91c75900 100644 --- a/salt/strelka/filecheck/filecheck +++ b/salt/strelka/filecheck/filecheck @@ -16,6 +16,7 @@ # along with this program. If not, see . import os +import shutil import time import hashlib import logging @@ -61,7 +62,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):