Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isFile (0.15 sec)

  1. cmd/common-main.go

    			}
    		}
    		GlobalKMS = KMS
    	}
    }
    
    func getTLSConfig() (x509Certs []*x509.Certificate, manager *certs.Manager, secureConn bool, err error) {
    	if !(isFile(getPublicCertFile()) && isFile(getPrivateKeyFile())) {
    		return nil, nil, false, nil
    	}
    
    	if x509Certs, err = config.ParsePublicCertFile(getPublicCertFile()); err != nil {
    		return nil, nil, false, err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  2. maven-core/src/main/java/org/apache/maven/ReactorReader.java

            return artifacts.map(RepositoryUtils::toArtifact);
        }
    
        private boolean isRegularFile(Artifact artifact) {
            return artifact.getFile() != null && artifact.getFile().isFile();
        }
    
        private void installIntoProjectLocalRepository(Artifact artifact) {
            Path target = getArtifactPath(artifact);
            try {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  3. cmd/utils.go

    		// Upon error just return Go-syntax representation of the value
    		return fmt.Sprintf("%#v", req)
    	}
    
    	// Formatted string.
    	return strings.TrimSpace(buffer.String())
    }
    
    // isFile - returns whether given path is a file or not.
    func isFile(path string) bool {
    	if fi, err := os.Stat(path); err == nil {
    		return fi.Mode().IsRegular()
    	}
    
    	return false
    }
    
    // UTCNow - returns current UTC time.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                                d.getManagementKey(),
                                "must specify an absolute path but is " + systemPath,
                                d);
                    } else if (!sysFile.isFile()) {
                        String msg = "refers to a non-existing file " + sysFile.getAbsolutePath();
                        systemPath = systemPath.replace('/', File.separatorChar).replace('\\', File.separatorChar);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          sink: MutableCollection<in T>,
          maxElements: Int,
        ) = error("unsupported")
      }
    
      /** Returns true if no tasks have been scheduled. This runs the coordinator for confirmation. */
      fun isIdle() = taskRunner.activeQueues().isEmpty()
    
      override fun close() {
        tasksExecutor.shutdownNow()
      }
    
      companion object {
        var instance = 0
    
        @JvmField
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
Back to top