From f2a7f561a07a1f9c56c24122b1537b3ab1b95163 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 2 Jan 2021 18:08:15 -0800 Subject: [PATCH] Replace incorrect symlink_dir usage with symlink_file --- runtime/src/snapshot_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 8a0efb0ece..b132a6756c 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -274,10 +274,10 @@ pub fn archive_snapshot_package(snapshot_package: &AccountsPackage) -> Result<() )); // `storage_path` - The file path where the AppendVec itself is located - // `output_path` - The directory where the AppendVec will be placed in the staging directory. + // `output_path` - The file path where the AppendVec will be placed in the staging directory. let storage_path = fs::canonicalize(storage_path).expect("Could not get absolute path for accounts"); - symlink::symlink_dir(storage_path, &output_path)?; + symlink::symlink_file(storage_path, &output_path)?; if !output_path.is_file() { return Err(SnapshotError::StoragePathSymlinkInvalid); }