[GH-ISSUE #3232] Upload folders and files within them at the same time in Sftp #2162

Closed
opened 2026-02-27 00:06:20 +03:00 by kerem · 9 comments
Owner

Originally created by @TomoyaKuroda on GitHub (Jan 3, 2024).
Original GitHub issue: https://github.com/electerm/electerm/issues/3232

What feature you'd like to see or proposal(期望什么新功能/特性或者建议)

I wonder if it's possible to upload folders and files within them in Sftp.
When I drag and drop folders in Sftp, it just upload folders but they don't have any files like empty folder.

Originally created by @TomoyaKuroda on GitHub (Jan 3, 2024). Original GitHub issue: https://github.com/electerm/electerm/issues/3232 ### What feature you'd like to see or proposal(期望什么新功能/特性或者建议) I wonder if it's possible to upload folders and files within them in Sftp. When I drag and drop folders in Sftp, it just upload folders but they don't have any files like empty folder.
kerem 2026-02-27 00:06:20 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@zxdong262 commented on GitHub (Jan 3, 2024):

Thank for the feedback, it do works this way, pack the whole folder and upload then unpack it, do get report that sometimes some files missing, can not reproduce the situation yet, still need investigation.

<!-- gh-comment-id:1876118862 --> @zxdong262 commented on GitHub (Jan 3, 2024): Thank for the feedback, it do works this way, pack the whole folder and upload then unpack it, do get report that sometimes some files missing, can not reproduce the situation yet, still need investigation.
Author
Owner

@zxdong262 commented on GitHub (Jan 4, 2024):

Can you provide electerm version and OS ? and file sizes situation? wondering if it is too big, tar process failed or something else?

<!-- gh-comment-id:1876152299 --> @zxdong262 commented on GitHub (Jan 4, 2024): Can you provide electerm version and OS ? and file sizes situation? wondering if it is too big, tar process failed or something else?
Author
Owner

@TomoyaKuroda commented on GitHub (Jan 4, 2024):

@zxdong262 Sure.
Version: 1.37.110
OS: Windows 11
It fails even if there is one 1kb file in a folder. It's CPanel server and dropping a folder (e.g. images) into /home/username/public_html/abc doesn't succeed while it just upload the empty folder without files.

<!-- gh-comment-id:1876184821 --> @TomoyaKuroda commented on GitHub (Jan 4, 2024): @zxdong262 Sure. Version: 1.37.110 OS: Windows 11 It fails even if there is one 1kb file in a folder. It's CPanel server and dropping a folder (e.g. images) into /home/username/public_html/abc doesn't succeed while it just upload the empty folder without files.
Author
Owner

@zxdong262 commented on GitHub (Jan 4, 2024):

Can you run this cmd in your server, just to check if tar cmd works as expected

mkdir xxx && cd xxx && for i in {1..5}; do dd if=/dev/zero of=file$i bs=1024 count=1; done && cd .. && tar -cf xxx.tar xxx && rm -rf xxx && tar -xf xxx.tar

then check if there is a xxx folder with 5 1k files in it

<!-- gh-comment-id:1876188930 --> @zxdong262 commented on GitHub (Jan 4, 2024): Can you run this cmd in your server, just to check if tar cmd works as expected ```sh mkdir xxx && cd xxx && for i in {1..5}; do dd if=/dev/zero of=file$i bs=1024 count=1; done && cd .. && tar -cf xxx.tar xxx && rm -rf xxx && tar -xf xxx.tar ``` then check if there is a xxx folder with 5 1k files in it
Author
Owner

@TomoyaKuroda commented on GitHub (Jan 4, 2024):

@zxdong262
The command works fine and it creates 5 files.

<!-- gh-comment-id:1876193119 --> @TomoyaKuroda commented on GitHub (Jan 4, 2024): @zxdong262 The command works fine and it creates 5 files.
Author
Owner

@zxdong262 commented on GitHub (Jan 4, 2024):

I think I know it, you drag from OS file manager, right? that is bug for sure! Would fix in next release.

Drag file from electerm built-in manager would be fine.

<!-- gh-comment-id:1876199607 --> @zxdong262 commented on GitHub (Jan 4, 2024): I think I know it, you drag from OS file manager, right? that is bug for sure! Would fix in next release. Drag file from electerm built-in manager would be fine.
Author
Owner

@TomoyaKuroda commented on GitHub (Jan 4, 2024):

Yeah, I drag folders from Windows file manager.
I'm looking forward to the next release. And thank you for your amazing work!

<!-- gh-comment-id:1876204664 --> @TomoyaKuroda commented on GitHub (Jan 4, 2024): Yeah, I drag folders from Windows file manager. I'm looking forward to the next release. And thank you for your amazing work!
Author
Owner

@zxdong262 commented on GitHub (Jan 10, 2024):

1.37.121 should fixed the issue

<!-- gh-comment-id:1884755092 --> @zxdong262 commented on GitHub (Jan 10, 2024): 1.37.121 should fixed the issue
Author
Owner

@TomoyaKuroda commented on GitHub (Jan 10, 2024):

Thanks a lot!

<!-- gh-comment-id:1885589900 --> @TomoyaKuroda commented on GitHub (Jan 10, 2024): Thanks a lot!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2162
No description provided.