feat: v1.5.2, fix edit file issue, add prefixes

This commit is contained in:
2023-12-15 21:15:22 +08:00
parent a7398a2578
commit 343a6f5fac
8 changed files with 57 additions and 11 deletions

View File

@@ -82,8 +82,9 @@ pub fn encrypt(cmd_encrypt: CmdEncrypt) -> XResult<()> {
let mut failed_count = 0;
let mut total_len = 0_u64;
for path in &cmd_encrypt.paths {
let path = config.resolve_path_namespace(path, false);
let start_encrypt_single = Instant::now();
match encrypt_single(path, &envelops, &cmd_encrypt) {
match encrypt_single(&path, &envelops, &cmd_encrypt) {
Ok(len) => {
total_len += len;
if len > 0 { succeed_count += 1; } else { skipped_count += 1; }