rustdesk / rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
https://rustdesk.com
GNU Affero General Public License v3.0
76.73k stars 10.32k forks source link

Create empty dir on send files in local #9993

Closed zuiyu1998 closed 6 days ago

rustdesk commented 1 week ago

Could ypu please remove pubspec.lock change?

rustdesk commented 1 week ago

@21pages review and test please

rustdesk commented 1 week ago

https://github.com/rustdesk/rustdesk/issues/9096

zuiyu1998 commented 1 week ago

Could ypu please remove pubspec.lock change?

ok

rustdesk commented 1 week ago

This PR only do one side? not both sides?

zuiyu1998 commented 1 week ago

this is local to remote.

rustdesk commented 1 week ago

Could you finish both sides? It is weird to merge a PR which only finish half. :(

zuiyu1998 commented 1 week ago

yes

zuiyu1998 commented 1 week ago

please test remote to local on sendfiles。

21pages commented 1 week ago
if (emptyDirs.isEmpty) {
        paths.add(item.path);
}

Transfer empty directory works without this. So it should be

if (emptyDirs.isEmpty) {
       return;
}
zuiyu1998 commented 1 week ago

if seleted items has empty dir,we should create the dir.