def dir_process(self, path, extensions=['py', 'txt', 'md'], recursive=True, write=False):
    path = j.sal.fs.pathNormalize(path)
    self.changes = {}
    for ext in extensions:
        for p in j.sal.fs.listFilesInDir(path, recursive=recursive, filter=('*.%s' % ext), followSymlinks=False):
            self._log_debug(('process file:%s' % p))
            self.file_process(root=path, path=p, write=write)
    print(j.data.serializers.yaml.dumps(self.changes))
def dir_process(self, path, extensions=['py', 'txt', 'md'], recursive=True, write=False):
    path = j.sal.fs.pathNormalize(path)
    self.changes = {}
    for ext in extensions:
        for p in j.sal.fs.listFilesInDir(path, recursive=recursive, filter=('*.%s' % ext), followSymlinks=False):
            self._log_debug(('process file:%s' % p))
            self.file_process(root=path, path=p, write=write)
    print(j.data.serializers.yaml.dumps(self.changes))