Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for createNewFile (0.2 sec)

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

        file.mkdir();
        return file;
      }
    
      @CanIgnoreReturnValue
      private File newFile(String name) throws IOException {
        File file = new File(rootDir, name);
        file.createNewFile();
        return file;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/BaseCIFSTest.java

            try ( SmbFile defaultShareRoot = getDefaultShareRoot() ) {
                SmbFile f = new SmbFile(defaultShareRoot, makeRandomName());
                f.createNewFile();
                return f;
            }
        }
    
    
        protected SmbFile createTestDirectory () throws MalformedURLException, UnknownHostException, CIFSException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/NamingTest.java

            try ( SmbFile d = createTestDirectory() ) {
                try {
    
                    for ( String name : names ) {
                        try ( SmbResource tf = new SmbFile(d, name) ) {
                            tf.createNewFile();
                        }
                    }
    
                    // check that the expected name is returned from listing
    
                    String[] found = d.list();
                    String[] expect = names;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  4. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

            then:
            assertNoDeadLinks()
        }
    
        private File createJavadocForClass(String path) {
            new File(docsRoot, "javadoc/${path}.html").tap {
                parentFile.mkdirs()
                createNewFile()
                text = "Generated javadoc HTML goes here"
            }
        }
    
        private GradleRunner run(String... args) {
            return GradleRunner.create()
                .withProjectDir(projectDir)
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Nov 28 22:01:54 GMT 2022
    - 7.8K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            String path = "target/test-repositories/" + component() + "/bad-local-repository";
    
            File f = new File(getBasedir(), path);
    
            f.createNewFile();
    
            return artifactRepositoryFactory.createArtifactRepository(
                    "test", "file://" + f.getPath(), repoLayout, null, null);
        }
    
        protected String getRepositoryLayout() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/DfsTest.java

            try ( SmbResource root = context.get(getTestShareURL()) ) {
                root.exists();
    
                try ( SmbResource t = root.resolve(makeRandomName()) ) {
                    try {
                        t.createNewFile();
                    }
                    finally {
                        t.delete();
                    }
                }
            }
    
            String dfsTestSharePath = getDFSTestSharePath();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 13.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbResource.java

         * existence of the file and it's creation are an atomic operation with
         * respect to other filesystem activities.
         * 
         * @throws CIFSException
         */
        void createNewFile () throws CIFSException;
    
    
        /**
         * Creates a directory with the path specified by this <tt>SmbResource</tt>
         * and any parent directories that do not exist. This method will fail
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(File file) throws IOException {
        checkNotNull(file);
        if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) {
          throw new IOException("Unable to update modification time of " + 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)
  9. src/main/java/jcifs/smb/SmbFile.java

                    log.debug("Failed to close after failure", e2);
                    e.addSuppressed(e2);
                }
                throw e;
            }
        }
    
    
        @Override
        public void createNewFile () throws SmbException {
            if ( this.fileLocator.isRootOrShare() ) {
                throw new SmbException("Invalid operation for workgroups, servers, or shares");
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFile.java

    /**
     * Create a new file but fail if it already exists. The check for
     * existance of the file and it's creation are an atomic operation with
     * respect to other filesystem activities.
     */
        public void createNewFile() throws SmbException {
            if( getUncPath0().length() == 1 ) {
                throw new SmbException( "Invalid operation for workgroups, servers, or shares" );
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
Back to top