MCPcopy Create free account
hub / github.com/Unpackerr/unpackerr / getFileList

Function getFileList

pkg/unpackerr/folder.go:373–390  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

371}
372
373func getFileList(path string) []os.FileInfo {
374 dir, err := os.Open(path)
375 if err != nil {
376 return nil
377 }
378 defer dir.Close()
379
380 if stat, err := dir.Stat(); err != nil || !stat.IsDir() {
381 return nil
382 }
383
384 fileList, err := dir.Readdir(-1)
385 if err != nil {
386 return nil
387 }
388
389 return fileList
390}
391
392// folderXtractrCallback is run twice by the xtractr library when the extraction begins, and finishes.
393func (u *Unpackerr) folderXtractrCallback(resp *xtractr.Response) {

Callers 1

extractTrackedItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected