'Which is the best way to read_dir a network path in Rust?

i can't read a path in my network using this code. Maybe fs::read_dir work only for local dirs.

use std::fs;

fn main() {
     
    let paths = fs::read_dir("\\nbsvr01").unwrap();
    for path in paths { 
        println!("Name: {}", path.unwrap().path().display())
    }

}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source