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

ls fails to return content for none root directories #2

Open
R-Sommer opened this issue Oct 15, 2023 · 0 comments
Open

ls fails to return content for none root directories #2

R-Sommer opened this issue Oct 15, 2023 · 0 comments

Comments

@R-Sommer
Copy link

R-Sommer commented Oct 15, 2023

Describe the bug

Method ls raise FileNotFoundError when trying to get other directories than root

To Reproduce

#!/usr/bin/python3 -u

import technisat

ts = technisat.Technisat()

try:
    ts.connect("192.168.1.2", 2376)
except Exception as e:
    print(e)
    exit(1)

print(ts.ls(directory="/recordings"))

ts.disconnect()

quering root directory works as expected

#!/usr/bin/python3 -u

import technisat

ts = technisat.Technisat()

try:
    ts.connect("192.168.1.2", 2376)
except Exception as e:
    print(e)
    exit(1)

print(ts.ls())

ts.disconnect()

Output
{'recordings': {}, 'music': {}, 'pictures': {}, 'video': {}}

BUG hint

Line 145 if d in current_dir fails since current_dir contains an empty dict.

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

1 participant