def generate_hash(self):

        hash_list = []
        for root, dirs, files in os.walk(self.options['source']):
            for f in sorted([f for f in files if not f.startswith('.')]):
                hash_list.append(os.path.join(root, f))
                hash_list.append(str(os.path.getmtime(os.path.join(root, f))))
        hash_list = ''.join(hash_list)

        if sys.version < '3':
            return hashlib.sha1(hash_list).hexdigest()
        return hashlib.sha1(hash_list.encode('utf-8')).hexdigest()
Return a hash of files and modification times to determine if a
dataset/ETHPy150Open jorgebastida/glue/glue/managers/watch.py/WatchManager.generate_hash