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

Add binding for listfiles command #53

Open
yktoo opened this issue Apr 30, 2020 · 0 comments
Open

Add binding for listfiles command #53

yktoo opened this issue Apr 30, 2020 · 0 comments

Comments

@yktoo
Copy link
Contributor

yktoo commented Apr 30, 2020

There's currently no function for the listfiles mpd command.

listfiles {URI}

Lists the contents of the directory URI, including files are not recognized by MPD. URI can be a path relative to the music directory or an URI understood by one of the storage plugins. The response contains at least one line for each directory entry with the prefix “file: ” or “directory: “, and may be followed by file attributes such as “Last-Modified” and “size”.

The only way to list files from MPD's database is to use the GetFiles() function that retrieves the entire file list at once. When the list is large this may introduce a performance penalty.

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