()
| 42 | } |
| 43 | |
| 44 | func ExampleListFiles() { |
| 45 | script.ListFiles("testdata/multiple_files_with_subdirectory").Stdout() |
| 46 | // Output: |
| 47 | // testdata\multiple_files_with_subdirectory\1.txt |
| 48 | // testdata\multiple_files_with_subdirectory\2.txt |
| 49 | // testdata\multiple_files_with_subdirectory\3.tar.zip |
| 50 | // testdata\multiple_files_with_subdirectory\dir |
| 51 | } |
| 52 | |
| 53 | func ExamplePipe_Basename() { |
| 54 | input := []string{ |