-
Notifications
You must be signed in to change notification settings - Fork 39
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
Explore folders feature #55
base: seamlisten
Are you sure you want to change the base?
Explore folders feature #55
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some changes on the python code
Co-authored-by: Pierre Andrews <628467+Mortimerp9@users.noreply.github.com>
this is a screenshot showing the Tree View in action. |
print(query_path.split(" ")) | ||
if query_path.endswith(".tsv.gz") or query_path.endswith(".zip"): | ||
query_path_str = query.gz_path.strip() | ||
query_path = Path(query_path_str).expanduser().resolve() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this work when the path is one of the other formats (which are not paths?), like:
a/b/c 100 10000
a/b/c|0|231231
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it will work normally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mortimerp9
can you re-review this PR
Co-authored-by: Pierre Andrews <628467+Mortimerp9@users.noreply.github.com>
Co-authored-by: Pierre Andrews <628467+Mortimerp9@users.noreply.github.com>
Why ?
We need to have this feature in order to be able to explore all folders and sub folders we need to scan to look for audio files on our seamlisten tool easily (like a JupyterNotebook)
How ?
I have build a method to gather the folder contents given the parent folder path using os.walk() method to do that effectively, and return all the folder contents in an array well constructed.
and this endpoint is called whenver the path the user enters is a path to a directory not a normal file.
Test plan
when running the frontend and the backend successfully, paste in the field to fetch a path to a folder and when pressing fetch, if you opened the console you should see an array of folder contents shown correctly.