def _lock_cache(w_lock):
    try:
        os.mkdir(w_lock)
    except __HOLE__ as exc:
        if exc.errno != errno.EEXIST:
            raise
        return False
    else:
        log.trace('Lockfile {0} created'.format(w_lock))
        return True
dataset/ETHPy150Open saltstack/salt/salt/fileserver/__init__.py/_lock_cache