fix: linux <- windows subfolder collepsed

This commit is contained in:
Kingtous committed 2022-05-20 10:53:10 +08:00
1 parent b267da2e70
commit c4663ecbf3
3 files changed
+20 -5

No files matched your search

+7 -1
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);