()
| 159 | } |
| 160 | |
| 161 | func ExampleListFiles() { |
| 162 | script.ListFiles("testdata/multiple_files_with_subdirectory").Stdout() |
| 163 | // Output: |
| 164 | // testdata/multiple_files_with_subdirectory/1.txt |
| 165 | // testdata/multiple_files_with_subdirectory/2.txt |
| 166 | // testdata/multiple_files_with_subdirectory/3.tar.zip |
| 167 | // testdata/multiple_files_with_subdirectory/dir |
| 168 | } |
| 169 | |
| 170 | func ExamplePipe_Basename() { |
| 171 | input := []string{ |