@wrap_exceptions
    def get_open_files(self):
        if self.pid == 0:
            return []
        files = []
        rawlist = _psutil_osx.get_process_open_files(self.pid)
        for path, fd in rawlist:
            if isfile_strict(path):
                ntuple = nt_openfile(path, fd)
                files.append(ntuple)
        return files
Return files opened by process.
dataset/ETHPy150Open packages/psutil/psutil/_psosx.py/Process.get_open_files