Browse Source

Added debug for test env

Toby Chui 3 years ago
parent
commit
7dfe835fe3
1 changed files with 2 additions and 0 deletions
  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) {
 func (a ServerMessageBlockFileSystemAbstraction) Glob(realpathWildcard string) ([]string, error) {
 	realpathWildcard = toWinPath(filterFilepath(realpathWildcard))
 	realpathWildcard = toWinPath(filterFilepath(realpathWildcard))
+	fmt.Println("GLOBING", realpathWildcard)
 	filteredMatches := []string{}
 	filteredMatches := []string{}
 	matches, err := a.share.Glob(realpathWildcard)
 	matches, err := a.share.Glob(realpathWildcard)
 	if err != nil {
 	if err != nil {
@@ -210,6 +211,7 @@ func (a ServerMessageBlockFileSystemAbstraction) Glob(realpathWildcard string) (
 
 
 	for _, thisMatch := range matches {
 	for _, thisMatch := range matches {
 		filteredMatches = append(filteredMatches, filepath.ToSlash(thisMatch))
 		filteredMatches = append(filteredMatches, filepath.ToSlash(thisMatch))
+		fmt.Println(filepath.ToSlash(thisMatch))
 	}
 	}
 	return filteredMatches, nil
 	return filteredMatches, nil
 }
 }