[GH-ISSUE #599] helpful little script #360

Closed
opened 2026-04-08 16:52:19 +03:00 by zhus · 3 comments
Owner

Originally created by @ilobilo on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/599

I made a small script for personal use that one can just source from one's .bashrc.
You need to change SERVER_URL and USER_PASS variables.
command examples:

upload-file local.txt /remote_dir
upload-files * /remote/subdir
download-file abcd.txt
download-dir /remote_dir # to remote_dir.zip
delete-file /file.txt
delete-files /file.txt /dir/subdir
create-dir new_dir
list-files
list-files /new_dir

fileservice.txt

Originally created by @ilobilo on GitHub (Jul 25, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/599 I made a small script for personal use that one can just ``source`` from one's ``.bashrc``. You need to change ``SERVER_URL`` and ``USER_PASS`` variables. command examples: ``` upload-file local.txt /remote_dir upload-files * /remote/subdir download-file abcd.txt download-dir /remote_dir # to remote_dir.zip delete-file /file.txt delete-files /file.txt /dir/subdir create-dir new_dir list-files list-files /new_dir ``` [fileservice.txt](https://github.com/user-attachments/files/21430583/fileservice.txt)
zhus closed this issue 2026-04-08 16:52:19 +03:00
Author
Owner

@ilobilo commented on GitHub (Jul 25, 2025):

the file extension is .txt because GitHub doesn't allow .sh

<!-- gh-comment-id:3117575934 --> @ilobilo commented on GitHub (Jul 25, 2025): the file extension is ``.txt`` because GitHub doesn't allow ``.sh``
Author
Owner

@sigoden commented on GitHub (Aug 2, 2025):

Thank you for sharing.

Here are some tips:

  • Simply post the script content; sharing a download link can be hard to access.
  • Why not wrap it as a CLI tool/cmdlet?

By the way, if I absolutely have to access dufs in the terminal, I'll use rclone and connect via WebDAV.

<!-- gh-comment-id:3146099406 --> @sigoden commented on GitHub (Aug 2, 2025): Thank you for sharing. Here are some tips: - Simply post the script content; sharing a download link can be hard to access. - Why not wrap it as a CLI tool/cmdlet? By the way, if I absolutely have to access dufs in the terminal, I'll use `rclone` and connect via WebDAV.
Author
Owner

@ilobilo commented on GitHub (Aug 2, 2025):

oh good idea, thanks

<!-- gh-comment-id:3146272533 --> @ilobilo commented on GitHub (Aug 2, 2025): oh good idea, thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#360