Function foreman::rerun_walk
[−]
[src]
pub fn rerun_walk<S: AsRef<OsStr> + ?Sized, CB: FnMut(&Path) -> bool>(
p: &S,
callback: CB
)
Recursively walk a directory, calling the provided callback for each file and directory, and if it returns true, tell cargo to trigger a rerun of the build script. Hidden files are included, but errors are ignored (so directories that you do not have permission to access will be silently skipped).