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

No such file or directory: '/root/.config/transmission' #17

Open
RaNaMaster opened this issue Jul 19, 2023 · 2 comments
Open

No such file or directory: '/root/.config/transmission' #17

RaNaMaster opened this issue Jul 19, 2023 · 2 comments

Comments

@RaNaMaster
Copy link

Traceback (most recent call last):
File "/chronos/scripts/add/add.py", line 72, in
mkdir(path.dirname(configfile))
FileNotFoundError: [Errno 2] No such file or directory: '/root/.config/transmission'

@RaNaMaster
Copy link
Author

here is my fix

from pathlib import Path

directory = Path('/root/.config/transmission')

if not directory.exists():
directory.mkdir(parents=True)
print(f"Directory '{directory}' created.")
else:
print(f"Directory '{directory}' already exists.")

@benyjr
Copy link

benyjr commented May 25, 2024

This happened to me. If transmission doesnt run as root, then /root/.config/transmission won't exist.

What user is transmission running as?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants