def exists_case_sensitive(path):
    result = os.path.exists(path)
    if sys.platform.startswith('win') and result:
        directory, basename = os.path.split(path)
        result = basename in os.listdir(directory)
    return result