pub async fn list_dir( path: &str, show_hidden: bool, max_entries: Option<usize>, ) -> Result<String>
List directory entries asynchronously.
Returns a JSON string containing the entries.