@staticmethod
    def create_dir(parent_dir, dir_name):
        """Create a directory (if it does not already exist)."""

        dir_path = os.path.abspath(os.path.join(parent_dir, dir_name))
        try:
            os.mkdir(dir_path)
        except __HOLE__ as e:
            if e.errno != errno.EEXIST:
                raise AssertionError('Unable to create directory %s: %s' %
                                     (dir_path, e.strerror))
        return dir_path
dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/systest.py/Systest.create_dir