def exists(self):
try:<EOL><INDENT>self.stat()<EOL><DEDENT>except OSError as e:<EOL><INDENT>if e.errno not in (ENOENT, ENOTDIR):<EOL><INDENT>raise<EOL><DEDENT>return False<EOL><DEDENT>return True<EOL>
Whether this path exists.