Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 81 for fullpath (0.4 sec)

  1. pkg/volume/git_repo/git_repo.go

    		return nil
    	}
    
    	var subdir string
    
    	switch {
    	case len(b.target) != 0 && filepath.Clean(b.target) == ".":
    		// if target dir is '.', use the current dir
    		subdir = filepath.Join(dir)
    	case len(files) == 1:
    		// if target is not '.', use the generated folder
    		subdir = filepath.Join(dir, files[0].Name())
    	default:
    		// if target is not '.', but generated many files, it's wrong
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/dryrun/dryrun.go

    	}
    }
    
    // PrintDryRunFile is a helper method around PrintDryRunFiles
    func PrintDryRunFile(fileName, realDir, printDir string, w io.Writer) error {
    	return PrintDryRunFiles([]FileToPrint{
    		NewFileToPrint(filepath.Join(realDir, fileName), filepath.Join(printDir, fileName)),
    	}, w)
    }
    
    // PrintDryRunFiles prints the contents of the FileToPrints given to it to the writer w
    func PrintDryRunFiles(files []FileToPrint, w io.Writer) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. cmd/import-boss/main_test.go

    limitations under the License.
    */
    
    package main
    
    import (
    	"path/filepath"
    	"reflect"
    	"strings"
    	"testing"
    
    	"golang.org/x/tools/go/packages"
    )
    
    func TestRemoveLastDir(t *testing.T) {
    	table := map[string]struct{ newPath, removedDir string }{
    		"a/b/c": {"a/c", "b"},
    	}
    	for slashInput, expect := range table {
    		input := filepath.FromSlash(slashInput)
    
    		gotPath, gotRemoved := removeLastDir(input)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. docs/debugging/reorder-disks/main.go

    	}
    
    	return result, nil
    }
    
    func getDiskUUIDMap() (map[string]string, error) {
    	result := make(map[string]string)
    	err := filepath.Walk("/dev/disk/by-uuid/",
    		func(path string, info os.FileInfo, err error) error {
    			if err != nil {
    				return err
    			}
    			realPath, err := filepath.EvalSymlinks(path)
    			if err != nil {
    				return err
    			}
    			result[realPath] = strings.TrimPrefix(path, "/dev/disk/by-uuid/")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/syscall/getdirentries_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin || freebsd || netbsd || openbsd
    
    package syscall_test
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	"slices"
    	"strings"
    	"syscall"
    	"testing"
    	"unsafe"
    )
    
    func TestGetdirentries(t *testing.T) {
    	for _, count := range []int{10, 1000} {
    		t.Run(fmt.Sprintf("n=%d", count), func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/trace/reader_test.go

    )
    
    func TestReaderGolden(t *testing.T) {
    	matches, err := filepath.Glob("./testdata/tests/*.test")
    	if err != nil {
    		t.Fatalf("failed to glob for tests: %v", err)
    	}
    	for _, testPath := range matches {
    		testPath := testPath
    		testName, err := filepath.Rel("./testdata", testPath)
    		if err != nil {
    			t.Fatalf("failed to relativize testdata path: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/gcimporter.go

    			noext = strings.TrimSuffix(bp.PkgObj, ".a")
    		}
    		id = bp.ImportPath
    
    	case build.IsLocalImport(path):
    		// "./x" -> "/this/directory/x.ext", "/this/directory/x"
    		noext = filepath.Join(srcDir, path)
    		id = noext
    
    	case filepath.IsAbs(path):
    		// for completeness only - go/build.Import
    		// does not support absolute imports
    		// "/x" -> "/x.ext", "/x"
    		noext = path
    		id = path
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. pkg/kubelet/pluginmanager/plugin_manager_test.go

    	for i := 0; i < maxDepth; i++ {
    		fakeHandler.Reset()
    		pluginDir := socketDir
    
    		for j := 0; j < i; j++ {
    			pluginDir = filepath.Join(pluginDir, strconv.Itoa(j))
    		}
    		require.NoError(t, os.MkdirAll(pluginDir, os.ModePerm))
    		socketPath := filepath.Join(pluginDir, fmt.Sprintf("plugin-%d.sock", i))
    
    		// Add a new plugin
    		pluginName := fmt.Sprintf("example-plugin-%d", i)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. cni/pkg/install/kubeconfig.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package install
    
    import (
    	"fmt"
    	"net"
    	"os"
    	"path/filepath"
    
    	"k8s.io/client-go/tools/clientcmd/api"
    	"k8s.io/client-go/tools/clientcmd/api/latest"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/cni/pkg/config"
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pkg/file"
    )
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. pilot/cmd/pilot-agent/options/agent.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package options
    
    import (
    	"os"
    	"path/filepath"
    	"strings"
    
    	meshconfig "istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pkg/bootstrap/platform"
    	istioagent "istio.io/istio/pkg/istio-agent"
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/wasm"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top