/**
   * Renames Path src to Path dst. On swift this uses copy-and-delete and <i>is not atomic</i>.
   *
   * @param src path
   * @param dst path
   * @return true if directory renamed, false otherwise
   * @throws IOException on problems
   */
  @Override
  public boolean rename(Path src, Path dst) throws IOException {

    try {
      store.rename(makeAbsolute(src), makeAbsolute(dst));
      // success
      return true;
    } catch (SwiftOperationFailedException e) {
      // downgrade to a failure
      return false;
    } catch (FileNotFoundException e) {
      // downgrade to a failure
      return false;
    }
  }