File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ impl<S: Read + Write> Client<S> {
427
427
// Database search {{{
428
428
// TODO: count tag needle [...] [group] [grouptag], find type what [...] [window start:end]
429
429
// TODO: search type what [...] [window start:end], searchadd type what [...]
430
- // TODO: listallinfo [uri], listfiles [uri], lsinfo [uri]
430
+ // TODO: listallinfo [uri], listfiles [uri]
431
431
// TODO: list type [filtertype] [filterwhat] [...] [group] [grouptype] [...]
432
432
// TODO: searchaddpl name type what [...], readcomments
433
433
@@ -469,6 +469,12 @@ impl<S: Read + Write> Client<S> {
469
469
. and_then ( |_| self . expect_ok ( ) )
470
470
}
471
471
472
+ /// Lists the contents of a directory.
473
+ pub fn lsinfo < P : ToSongPath > ( & mut self , path : P ) -> Result < Song > {
474
+ self . run_command ( "lsinfo" , path)
475
+ . and_then ( |_| self . read_struct ( ) )
476
+ }
477
+
472
478
// }}}
473
479
474
480
// Output methods {{{
You can’t perform that action at this time.
0 commit comments