void createTemporaryDirectoryForFileCopyIfAbsent(ReplicaId replica, StoreConfig storeConfig) throws IOException {
    String tempDirPath = replica.getReplicaPath() + File.separator + storeConfig.storeFileCopyTemporaryDirectoryName;
    logger.info("Creating Temporary Directory For File Copy: " + tempDirPath);
    File fileCopyTemporaryDirectory = new File(replica.getReplicaPath(), storeConfig.storeFileCopyTemporaryDirectoryName);
    if (!fileCopyTemporaryDirectory.exists()) {
      fileCopyTemporaryDirectory.mkdirs();
    }
  }
Use FileCopyTemporaryDirectoryName to create a temporary directory for file copy.
This will be used to write the files which are not yet written and can be cleaned
up without
ambry-file-transfer/src/main/java/com/github/ambry/filetransfer/FileCopyBasedReplicationSchedulerImpl.java