Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for is_file (0.15 sec)

  1. guava-tests/test/com/google/common/io/FilesTest.java

        File asciiFile = getTestFile("ascii.txt");
        File dir = asciiFile.getParentFile();
        assertTrue(Files.isDirectory().apply(dir));
        assertFalse(Files.isFile().apply(dir));
    
        assertFalse(Files.isDirectory().apply(asciiFile));
        assertTrue(Files.isFile().apply(asciiFile));
      }
    
      /** Returns a root path for the file system. */
      private static File root() {
        return File.listRoots()[0];
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            String path = getPathForLocalArtifact(request.getArtifact());
            File file = new File(getRepository().getBasedir(), path);
    
            LocalArtifactResult result = new LocalArtifactResult(request);
            if (file.isFile()) {
                result.setFile(file);
                result.setAvailable(true);
            }
    
            return result;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

            PluginDescriptor pluginDescriptor = null;
    
            File pluginFile = pluginArtifact.getFile();
    
            try {
                if (pluginFile.isFile()) {
                    try (JarFile pluginJar = new JarFile(pluginFile, false)) {
                        ZipEntry pluginDescriptorEntry = pluginJar.getEntry(getPluginDescriptorLocation());
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/org/codelibs/fess/helper/ViewHelper.java

        }
    
        private boolean existsPage(final String path) {
            final String realPath = LaServletContextUtil.getServletContext().getRealPath(path);
            final File file = new File(realPath);
            return file.isFile();
        }
    
        public String createCacheContent(final Map<String, Object> doc, final String[] queries) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 40.1K bytes
    - Viewed (2)
  6. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

                }
                final File jspFile = new File(getServletContext().getRealPath(path));
                if (!jspFile.exists()) {
                    throwValidationError(messages -> messages.addErrorsDesignJspFileDoesNotExist(GLOBAL), this::asListHtml);
                }
                return jspFile;
            } catch (final UnsupportedEncodingException e) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java

                String pluginGroup,
                org.eclipse.aether.metadata.Metadata metadata,
                ArtifactRepository repository) {
            if (metadata != null && metadata.getFile() != null && metadata.getFile().isFile()) {
                try {
                    Map<String, ?> options = Collections.singletonMap(MetadataReader.IS_STRICT, Boolean.FALSE);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    throw new ArtifactNotFoundException(
                            "System artifact: " + artifact + " not found in path: " + systemFile, artifact);
                }
    
                if (!systemFile.isFile()) {
                    throw new ArtifactNotFoundException(
                            "System artifact: " + artifact + " is not a file: " + systemFile, artifact);
                }
    
                artifact.setResolved(true);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 24.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Files.java

        return FilePredicate.IS_DIRECTORY;
      }
    
      /**
       * Returns a predicate that returns the result of {@link File#isFile} on input files.
       *
       * @since 15.0
       */
      public static Predicate<File> isFile() {
        return FilePredicate.IS_FILE;
      }
    
      private enum FilePredicate implements Predicate<File> {
        IS_DIRECTORY {
          @Override
          public boolean apply(File file) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/FilesTest.java

        File asciiFile = getTestFile("ascii.txt");
        File dir = asciiFile.getParentFile();
        assertTrue(Files.isDirectory().apply(dir));
        assertFalse(Files.isFile().apply(dir));
    
        assertFalse(Files.isDirectory().apply(asciiFile));
        assertTrue(Files.isFile().apply(asciiFile));
      }
    
      /** Returns a root path for the file system. */
      private static File root() {
        return File.listRoots()[0];
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
Back to top