Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xfer got problems with 'xfer.file.auto_rename' #1633

Closed
bsdcpp opened this issue Apr 25, 2021 · 2 comments
Closed

xfer got problems with 'xfer.file.auto_rename' #1633

bsdcpp opened this issue Apr 25, 2021 · 2 comments
Assignees
Labels
bug Unexpected problem or unintended behavior
Milestone

Comments

@bsdcpp
Copy link

bsdcpp commented Apr 25, 2021

Bug summary

weechat v3.1
When I download files from irc.undernet.org#bookz, if you download the same file (named file.epub) agian, you'll always get file.epub.1, file.epub.2 ......, seems the /set config doesn't work.

Steps to reproduce

 xfer.file.auto_accept_chats          boolean  on
 xfer.file.auto_accept_files          boolean  on
 xfer.file.auto_accept_nicks          string   ""
 xfer.file.auto_check_crc32           boolean  off
 xfer.file.auto_rename                boolean  off
 xfer.file.auto_resume                boolean  on
 xfer.file.convert_spaces             boolean  off
 xfer.file.download_path              string   "~/Downloads/weechat"
 xfer.file.download_temporary_suffix  string   ".part"
 xfer.file.upload_path                string   "~"
 xfer.file.use_nick_in_filename       boolean  off

1. set xfer.file like above
2. connect network irc.undernet.org, join #bookz channel
3. search one thing like: @search harry potter, then download one of them;
4. download the file again, you'd get filename.1, again filename.2

Current behavior

Expected behavior

don't download files again when exists.

Suggested solutions

Additional information


  • WeeChat version: v3.1, installed with brew
  • OS, distribution and version: macos big sur 11.2.2
  • Terminal: iTerm
  • Terminal multiplexer (screen/tmux/…/none): none
@bsdcpp bsdcpp added the bug Unexpected problem or unintended behavior label Apr 25, 2021
@bsdcpp bsdcpp changed the title xfer got problems with 'rename and conver_spaces' xfer got problems with 'rename and convert_spaces' Apr 25, 2021
@bsdcpp bsdcpp changed the title xfer got problems with 'rename and convert_spaces' xfer got problems with 'xfer.file.auto_rename' Apr 26, 2021
@bsdcpp
Copy link
Author

bsdcpp commented Apr 26, 2021

if (!xfer_config_file_auto_rename)

maybe this line should be

if (!weechat_config_boolean (xfer_config_file_auto_rename))

Please check this out, thanks.

@flashcode flashcode self-assigned this Apr 26, 2021
@flashcode flashcode added this to the 3.2 milestone Apr 26, 2021
@bsdcpp
Copy link
Author

bsdcpp commented Apr 27, 2021

Would you please set the stauts to aborted(XFER_STATUS_ABORTED), people will be confused with the failed msg.
Or maybe add a new status, tell people this is a duplication one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants