diff --git a/src/dir.rs b/src/dir.rs index 7915f79..87faa24 100644 --- a/src/dir.rs +++ b/src/dir.rs @@ -246,7 +246,7 @@ pub struct LsResult { /// /// #Examples /// -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::{get_details_entry, DirEntryAttr}; /// use std::collections::{HashMap, HashSet}; @@ -423,7 +423,7 @@ where /// /// #Examples /// -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::{ls, DirEntryAttr, LsResult}; /// use std::collections::HashSet; @@ -479,7 +479,7 @@ where /// /// #Examples /// -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::create; /// @@ -514,11 +514,12 @@ where /// /// #Examples /// -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::create_all; /// /// create_all("/some/dir", false); // create directory some and dir +/// ``` pub fn create_all

(path: P, erase: bool) -> Result<()> where P: AsRef, @@ -544,7 +545,7 @@ where /// * The current process does not have the permission to access `from` or write `to`. /// /// # Example -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::copy; /// @@ -554,7 +555,6 @@ where /// /// // copy source/dir1 to target/dir1 /// copy("source/dir1", "target/dir1", &options)?; -/// /// ``` pub fn copy(from: P, to: Q, options: &CopyOptions) -> Result where @@ -655,7 +655,7 @@ where /// * The current process does not have the permission to access `path`. /// /// # Examples -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::get_dir_content; /// @@ -664,7 +664,6 @@ where /// println!("{}", directory); // print directory path /// } /// ``` -/// pub fn get_dir_content

(path: P) -> Result where P: AsRef, @@ -689,7 +688,7 @@ where /// * The current process does not have the permission to access `path`. /// /// # Examples -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::{DirOptions, get_dir_content2}; /// @@ -700,7 +699,6 @@ where /// println!("{}", directory); // print directory path /// } /// ``` -/// pub fn get_dir_content2

(path: P, options: &DirOptions) -> Result where P: AsRef, @@ -773,7 +771,7 @@ where /// * The current process does not have the permission to access `path`. /// /// # Examples -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::get_size; /// @@ -815,7 +813,7 @@ where /// * The current process does not have the permission to access `from` or write `to`. /// /// # Example -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::copy; /// @@ -826,7 +824,6 @@ where /// } /// // copy source/dir1 to target/dir1 /// copy_with_progress("source/dir1", "target/dir1", &options, handle)?; -/// /// ``` pub fn copy_with_progress( from: P, @@ -1033,7 +1030,7 @@ where /// * The current process does not have the permission to access `from` or write `to`. /// /// # Example -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::move_dir; /// @@ -1041,7 +1038,6 @@ where /// /// // move source/dir1 to target/dir1 /// move_dir("source/dir1", "target/dir1", &options)?; -/// /// ``` pub fn move_dir(from: P, to: Q, options: &CopyOptions) -> Result where @@ -1153,7 +1149,7 @@ where /// * The current process does not have the permission to access `from` or write `to`. /// /// # Example -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::move_dir_with_progress; /// @@ -1165,7 +1161,6 @@ where /// /// // move source/dir1 to target/dir1 /// move_dir_with_progress("source/dir1", "target/dir1", &options, handle)?; -/// /// ``` pub fn move_dir_with_progress( from: P, @@ -1368,7 +1363,7 @@ where /// Removes directory. /// /// # Example -/// ```rust,ignore +/// ```no_run /// extern crate fs_extra; /// use fs_extra::dir::remove; ///