| 136 | } |
| 137 | |
| 138 | func ExampleFindFiles() { |
| 139 | script.FindFiles("testdata/multiple_files_with_subdirectory").Stdout() |
| 140 | // Output: |
| 141 | // testdata/multiple_files_with_subdirectory/1.txt |
| 142 | // testdata/multiple_files_with_subdirectory/2.txt |
| 143 | // testdata/multiple_files_with_subdirectory/3.tar.zip |
| 144 | // testdata/multiple_files_with_subdirectory/dir/.hidden |
| 145 | // testdata/multiple_files_with_subdirectory/dir/1.txt |
| 146 | // testdata/multiple_files_with_subdirectory/dir/2.txt |
| 147 | } |
| 148 | |
| 149 | func ExampleIfExists_exec() { |
| 150 | script.IfExists("./testdata/hello.txt").Exec("echo hello").Stdout() |