mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-22 15:21:04 +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?;
|
||||
} else {
|
||||
fs::create_dir_all(&path.parent().unwrap()).await.ok();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue