From 6c2e1f6411160e43a4996ed35950ae3d18dc7ff8 Mon Sep 17 00:00:00 2001 From: Saru2003 Date: Tue, 15 Oct 2024 06:43:32 +0530 Subject: [PATCH] Change naming convention for folders to append index after the name --- yazi-shared/src/fs/path.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yazi-shared/src/fs/path.rs b/yazi-shared/src/fs/path.rs index 592e4f17..7279cc41 100644 --- a/yazi-shared/src/fs/path.rs +++ b/yazi-shared/src/fs/path.rs @@ -100,9 +100,9 @@ pub async fn unique_name(mut u: Url) -> io::Result { let mut name = OsString::with_capacity(stem.len() + ext.len() + 5); name.push(&stem); - name.push("_"); - name.push(i.to_string()); - name.push(&ext); + name.push(&ext); + name.push("_"); + name.push(i.to_string()); p.set_file_name(name); i += 1;