'Whether this path is a regular file (also True for symlinks pointing
to regular files).'

def is_file(self):

    try:
        return S_ISREG(self.stat().st_mode)
    except OSError as e:
        if (e.errno != ENOENT):
            raise
        return False
