MCPcopy Index your code
hub / github.com/bitfield/script / ExampleListFiles

Function ExampleListFiles

script_windows_test.go:44–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func 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
53func ExamplePipe_Basename() {
54 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…