mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: allow both '/' and '\' in folder creation (#751)
This commit is contained in:
parent
8508a5f577
commit
fa2632eda9
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ impl Manager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if name.ends_with(MAIN_SEPARATOR) {
|
if name.ends_with('/') || name.ends_with('\\') {
|
||||||
fs::create_dir_all(&path).await?;
|
fs::create_dir_all(&path).await?;
|
||||||
} else {
|
} else {
|
||||||
fs::create_dir_all(&path.parent().unwrap()).await.ok();
|
fs::create_dir_all(&path.parent().unwrap()).await.ok();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue