acquire method

bool acquire()

Implementation

bool acquire() {
  try {
    return _create();
  } on PathExistsException {
    if (!_removeStaleLock()) return false;
    try {
      return _create();
    } on FileSystemException {
      return false;
    }
  } on FileSystemException {
    return false;
  }
}