def create_dir(prefix):
    dir_c = os.path.join(os.getcwd(), prefix, datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S'))
    try:
        os.makedirs(dir_c)
    except __HOLE__, e:
        if e.errno != 17:
            pass
        else:
            print "Cannot create folder. Try again."
            exit
    return dir_c
dataset/ETHPy150Open ankitaggarwal011/FaceGrab/fb_image.py/create_dir