fix: linux <- windows subfolder collepsed

This commit is contained in:
Kingtous
2022-05-20 10:51:13 +08:00
parent b267da2e70
commit c4663ecbf3
3 changed files with 20 additions and 5 deletions

View File

@@ -2019,7 +2019,13 @@ impl Remote {
Some(message::Union::file_response(fr)) => {
match fr.union {
Some(file_response::Union::dir(fd)) => {
let entries = fd.entries.to_vec();
let mut entries = fd.entries.to_vec();
#[cfg(not(windows))]
{
if self.handler.peer_platform() == "Windows" {
fs::transform_windows_path(&mut entries);
}
}
let mut m = make_fd(fd.id, &entries, fd.id > 0);
if fd.id <= 0 {
m.set_item("path", fd.path);