MCPcopy
hub / github.com/bitfield/script / ExampleListFiles

Function ExampleListFiles

script_unix_test.go:161–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159}
160
161func 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
170func ExamplePipe_Basename() {
171 input := []string{

Callers

nothing calls this directly

Calls 2

ListFilesFunction · 0.92
StdoutMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…