pub async fn list_directory(root_proxy: &DirectoryProxy) -> Result<Vec<String>, Error> {
    let entries = files_async::readdir(&root_proxy).await?;
    let mut items = entries.iter().map(|entry| entry.name.clone()).collect::<Vec<String>>();
    items.sort();
    Ok(items)
}
/// Convenience method to lists the contents of a directory proxy as a sorted vector of strings.
Convenience method to lists the contents of a directory proxy as a sorted vector of strings.
Convenience method to lists the contents of a directory proxy as a sorted vector of strings .
pub async fn list_directory(root_proxy: &DirectoryProxy) -> Result<Vec<String>, Error> {
    let entries = files_async::readdir(&root_proxy).await?;
    let mut items = entries.iter().map(|entry| entry.name.clone()).collect::<Vec<String>>();
    items.sort();
    Ok(items)
}
pub async fn list_directory ( root_proxy : & DirectoryProxy ) -> Result < Vec < String > , Error > { let entries = files_async :: readdir ( & root_proxy ) . await ? ; let mut items = entries . iter ( ) . map ( | entry | entry . name . clone ( ) ) . collect :: < Vec < String > > ( ) ; items . sort ( ) ; Ok ( items ) }
Convenience method to lists the contents of a directory proxy as a sorted vector of strings.
Convenience method to lists the contents of a directory proxy as a sorted vector of strings .
root_proxy
&DirectoryProxy
root_proxy
&DirectoryProxy