Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for NormalizePath (0.17 sec)

  1. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_windows.go

    	// Once the issue is resvolved, the following os.Lstat() is not needed.
    	if err != nil {
    		fi, err = os.Lstat(event.Name)
    	}
    
    	return fi, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/internal/PathUtil.java

     * limitations under the License.
     */
    
    package org.gradle.plugins.ide.eclipse.model.internal;
    
    import org.apache.commons.io.FilenameUtils;
    
    public class PathUtil {
        public static String normalizePath(String path) {
            return FilenameUtils.separatorsToUnix(path);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 857 bytes
    - Viewed (0)
  3. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/Output.java

        public Output(Node node) {
            this((String)node.attribute("path"));
        }
    
        public Output(String path) {
            Preconditions.checkNotNull(path);
            this.path = PathUtil.normalizePath(path);
        }
    
        public String getPath() {
            return path;
        }
    
        public void setPath(String path) {
            this.path = path;
        }
    
        @Override
        public String getKind() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/listener_builder.go

    	case meshconfig.MeshConfig_ProxyPathNormalization_NONE:
    		connectionManager.NormalizePath = proto.BoolFalse
    	case meshconfig.MeshConfig_ProxyPathNormalization_BASE, meshconfig.MeshConfig_ProxyPathNormalization_DEFAULT:
    		connectionManager.NormalizePath = proto.BoolTrue
    	case meshconfig.MeshConfig_ProxyPathNormalization_MERGE_SLASHES:
    		connectionManager.NormalizePath = proto.BoolTrue
    		connectionManager.MergeSlashes = true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. pkg/test/framework/config/config.go

    		} else if v := parent.String(key); v != "" {
    			// otherwise parse via string (if-set)
    			err = f.Value.Set(v)
    		}
    	})
    }
    
    func readConfig() (Map, error) {
    	path, err := file.NormalizePath(configFilePath)
    	if err != nil {
    		return nil, fmt.Errorf("failed normalizing config file path %q: %v", configFilePath, err)
    	}
    	bytes, err := os.ReadFile(path)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  6. pkg/kubelet/util/util_windows_test.go

    			normalizedPath: "c:\\file",
    		},
    		{
    			originalpath:   "fileonly",
    			normalizedPath: "fileonly",
    		},
    	}
    
    	for _, test := range tests {
    		assert.Equal(t, test.normalizedPath, NormalizePath(test.originalpath))
    	}
    }
    
    func TestLocalEndpoint(t *testing.T) {
    	tests := []struct {
    		path             string
    		file             string
    		expectError      bool
    		expectedFullPath string
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. pkg/test/framework/components/environment/kube/flags.go

    	if err != nil {
    		return nil, err
    	}
    	if len(out) == 0 {
    		scopes.Framework.Info("Environment variable KUBECONFIG unspecified, defaulting to ~/.kube/config.")
    		normalizedDefaultKubeConfig, err := file.NormalizePath(defaultKubeConfig)
    		if err != nil {
    			return nil, fmt.Errorf("error normalizing default kube config file %s: %v",
    				defaultKubeConfig, err)
    		}
    		out = []string{normalizedDefaultKubeConfig}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/Link.java

            Preconditions.checkArgument(!isNullOrEmpty(location) || !isNullOrEmpty(locationUri));
            this.name = name;
            this.type = type;
            this.location = PathUtil.normalizePath(emptyToNull(location));
            this.locationUri = emptyToNull(locationUri);
        }
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/deployment/flags.go

    		}
    		if cc.Cluster.Name() != "" {
    			_, _ = fmt.Fprintf(buf, "Cluster:  %s\n", cc.Cluster.Name())
    		}
    	}
    	return buf.String()
    }
    
    func (c *configs) Set(path string) error {
    	path, err := file.NormalizePath(path)
    	if err != nil {
    		return err
    	}
    	yml, err := os.ReadFile(path)
    	if err != nil {
    		return err
    	}
    	out, err := echo.ParseConfigs(yml)
    	if err != nil {
    		return err
    	}
    	*c = out
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  10. pkg/test/framework/components/cluster/kube/factory.go

    	cfg, err := validConfig(origCfg)
    	if err != nil {
    		return nil, err
    	}
    
    	kubeconfigPath := cfg.Meta.String(kubeconfigMetaKey)
    	kubeconfigPath, err = file.NormalizePath(kubeconfigPath)
    	if err != nil {
    		return nil, err
    	}
    
    	var client istioKube.CLIClient
    	if len(cfg.HTTPProxy) > 0 {
    		proxyURL, err := url.Parse(cfg.HTTPProxy)
    		if err != nil {
    			return nil, err
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top