Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isdir (0.25 sec)

  1. operator/cmd/mesh/manifest-generate_test.go

    	return filepath.Walk(src, func(path string, info fs.FileInfo, err error) error {
    		if err != nil {
    			return err
    		}
    
    		outpath := filepath.Join(dest, strings.TrimPrefix(path, src))
    
    		if info.IsDir() {
    			os.MkdirAll(outpath, info.Mode())
    			return nil
    		}
    		cpErr := file.AtomicCopy(path, filepath.Dir(outpath), filepath.Base(outpath))
    		if cpErr != nil {
    			return cpErr
    		}
    
    		return nil
    	})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top