|
89 | 89 | //! ```rust |
90 | 90 | //! use framels::{basic_listing, extended_listing, parse_dir, paths::{Paths,Join}, recursive_dir}; |
91 | 91 | //! |
92 | | -//! fn main() { |
93 | | -//! // Perform directory listing |
94 | | -//! let in_paths: Paths = parse_dir("./samples/small"); |
| 92 | +//! |
| 93 | +//! // Perform directory listing |
| 94 | +//! let in_paths: Paths = parse_dir("./samples/small"); |
95 | 95 | //! |
96 | | -//! // Generate results based on arguments |
| 96 | +//! // Generate results based on arguments |
97 | 97 | //! let results: String = basic_listing(in_paths, false).get_paths().join("\n"); |
98 | 98 | //! |
99 | 99 | //! println!("{}", results) |
100 | | -//! } |
101 | 100 | //! ``` |
102 | 101 | mod exr_metadata; |
103 | 102 | pub mod paths; |
@@ -307,15 +306,13 @@ fn create_frame_string(value: Vec<String>) -> String { |
307 | 306 | /// ```rust |
308 | 307 | /// use framels::{basic_listing, parse_dir, paths::{Paths,Join}}; |
309 | 308 | /// |
310 | | -/// fn main() { |
311 | | -/// // Perform directory listing |
312 | | -/// let in_paths: Paths = parse_dir("./samples/small"); |
| 309 | +/// // Perform directory listing |
| 310 | +/// let in_paths: Paths = parse_dir("./samples/small"); |
313 | 311 | /// |
314 | | -/// // Generate results based on arguments |
315 | | -/// let results: String = basic_listing(in_paths, false).get_paths().join("\n"); |
| 312 | +/// // Generate results based on arguments |
| 313 | +/// let results: String = basic_listing(in_paths, false).get_paths().join("\n"); |
316 | 314 | /// |
317 | | -/// println!("{}", results) |
318 | | -/// } |
| 315 | +/// println!("{}", results) |
319 | 316 | /// ``` |
320 | 317 | pub fn basic_listing(frames: Paths, multithreaded: bool) -> PathsPacked { |
321 | 318 | let frames_dict: HashMap<String, Vec<String>> = parse_result(frames, multithreaded); |
|
0 commit comments