Jelajahi Sumber

Added debug for test env

Toby Chui 3 tahun lalu
induk
melakukan
7dfe835fe3
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      mod/filesystem/abstractions/smbfs/smbfs.go

+ 2 - 0
mod/filesystem/abstractions/smbfs/smbfs.go

@@ -202,6 +202,7 @@ func (a ServerMessageBlockFileSystemAbstraction) IsDir(realpath string) bool {
 
 func (a ServerMessageBlockFileSystemAbstraction) Glob(realpathWildcard string) ([]string, error) {
 	realpathWildcard = toWinPath(filterFilepath(realpathWildcard))
+	fmt.Println("GLOBING", realpathWildcard)
 	filteredMatches := []string{}
 	matches, err := a.share.Glob(realpathWildcard)
 	if err != nil {
@@ -210,6 +211,7 @@ func (a ServerMessageBlockFileSystemAbstraction) Glob(realpathWildcard string) (
 
 	for _, thisMatch := range matches {
 		filteredMatches = append(filteredMatches, filepath.ToSlash(thisMatch))
+		fmt.Println(filepath.ToSlash(thisMatch))
 	}
 	return filteredMatches, nil
 }