def _get_is_file(self):

        return os.path.exists(self.path) and os.path.isfile(self.path)
Returns True if the path exists and is a file.
dataset/ETHPy150Open enthought/traits/traits/tests/test_protocols_usage.py/File._get_is_file