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

!upload_file and !download_file cant work with Paths with Spaces #3

Open
truelockmc opened this issue Feb 6, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@truelockmc
Copy link
Owner

User
 — 
heute um 18:29 Uhr
!file_upload C:\Program Files\
Atachment
43.49 KB

Bot
 — 
heute um 18:29 Uhr
Error uploading file: [Errno 13] Permission denied: 'C:\Program'


User
 — 
heute um 18:31 Uhr
!file_upload "C:\Program Files"

Console:

[2025-02-06 18:31:03] [ERROR   ] discord.ext.commands.bot: Ignoring exception in command file_upload
Traceback (most recent call last):
  File "C:\Users\Schüler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\bot.py", line 1366, in invoke
    await ctx.command.invoke(ctx)
  File "C:\Users\Schüler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\core.py", line 1021, in invoke
    await self.prepare(ctx)
  File "C:\Users\Schüler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\core.py", line 938, in prepare
    await self._parse_arguments(ctx)
  File "C:\Users\Schüler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\core.py", line 845, in _parse_arguments
    transformed = await self.transform(ctx, param, attachments)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Schüler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\core.py", line 711, in transform
    raise exc
  File "C:\Users\Schüler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\core.py", line 705, in transform
    ctx.current_argument = argument = view.get_quoted_word()
                                      ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Schüler\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\view.py", line 151, in get_quoted_word
    raise ExpectedClosingQuoteError(close_quote)
discord.ext.commands.errors.ExpectedClosingQuoteError: Expected closing ".
@truelockmc truelockmc added the bug Something isn't working label Feb 6, 2025
@truelockmc truelockmc self-assigned this Feb 6, 2025
@truelockmc truelockmc changed the title !upload_file cant work with Paths with Spaces !upload_file and !download_file cant work with Paths with Spaces Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant