Change naming convention for folders to append index after the name

This commit is contained in:
Saru2003 2024-10-15 06:43:32 +05:30 committed by sxyazi
parent 097e5abb82
commit 6c2e1f6411
No known key found for this signature in database

View file

@ -100,9 +100,9 @@ pub async fn unique_name(mut u: Url) -> io::Result<Url> {
let mut name = OsString::with_capacity(stem.len() + ext.len() + 5);
name.push(&stem);
name.push(&ext);
name.push("_");
name.push(i.to_string());
name.push(&ext);
p.set_file_name(name);
i += 1;