private boolean increaseReferenceIfExists(String copiedSnapshotPath) {
    final AtomicLong referenceCount = copiedSnapshotPath2ReferenceCountMap.get(copiedSnapshotPath);
    if (referenceCount != null) {
      referenceCount.incrementAndGet();
      return true;
    }
    return false;
  }
Given a snapshot path, copy it to pipe dir, maintain a reference count for the copied snapshot,
and return the copied snapshot root path.

<p>If the given file is already a copied snapshot, increase its reference count and return it.

<p>Otherwise, copy the snapshot to pipe dir, increase its reference count and return it.

@throws IOException when copy file failed
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/resource/snapshot/PipeSnapshotResourceManager.java