Skip to content

Commit ee5e7cf

Browse files
ndtoan96asim215
authored andcommitted
feat: allow both '/' and '\' in folder creation (sxyazi#751)
1 parent 47be6e2 commit ee5e7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yazi-core/src/manager/commands/create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Manager {
3232
}
3333
}
3434

35-
if name.ends_with(MAIN_SEPARATOR) {
35+
if name.ends_with('/') || name.ends_with('\\') {
3636
fs::create_dir_all(&path).await?;
3737
} else {
3838
fs::create_dir_all(&path.parent().unwrap()).await.ok();

0 commit comments

Comments
 (0)