Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for mkdirs (1.06 sec)

  1. android/guava/src/com/google/common/io/Files.java

       *     use {@code new File(context.getCacheDir(), "directoryname").mkdir()}, or, if you need an
       *     arbitrary number of temporary directories, you might have to generate multiple directory
       *     names in a loop until {@code mkdir()} returns {@code true}.) For Java 7+ users, prefer
       *     {@link java.nio.file.Files#createTempDirectory}, transforming it to a {@link File} using
    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)
  2. android/guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

     * limitations under the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.StandardSystemProperty.JAVA_COMPILER;
    import static com.google.common.base.StandardSystemProperty.JAVA_EXT_DIRS;
    import static com.google.common.truth.Truth.assertWithMessage;
    
    import com.google.common.annotations.GwtIncompatible;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link StandardSystemProperty}.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

            .containsExactly(rootDir, fileA, fileB, dir1, dir2);
      }
    
      @CanIgnoreReturnValue
      private File newDir(String name) {
        File file = new File(rootDir, name);
        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)
  4. guava/src/com/google/common/base/StandardSystemProperty.java

       *     Java 8 and removed in Java 9. We do not plan to remove this API from Guava, but if you are
       *     using it, it is probably not doing what you want.
       */
      @Deprecated
      JAVA_EXT_DIRS("java.ext.dirs"),
    
      /** Operating system name. */
      OS_NAME("os.name"),
    
      /** Operating system architecture. */
      OS_ARCH("os.arch"),
    
      /** Operating system version. */
      OS_VERSION("os.version"),
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/TempFileCreator.java

          String baseName = System.currentTimeMillis() + "-";
    
          for (int counter = 0; counter < TEMP_DIR_ATTEMPTS; counter++) {
            File tempDir = new File(baseDir, baseName + counter);
            if (tempDir.mkdir()) {
              return tempDir;
            }
          }
          throw new IllegalStateException(
              "Failed to create directory within "
                  + TEMP_DIR_ATTEMPTS
                  + " attempts (tried "
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/IoTestCase.java

       * deleted in the tear-down for this test.
       */
      protected final File createTempDir() throws IOException {
        File tempFile = File.createTempFile("IoTestCase", "");
        if (!tempFile.delete() || !tempFile.mkdir()) {
          throw new IOException("failed to create temp dir");
        }
        filesToDelete.add(tempFile);
        return tempFile;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

     * limitations under the License.
     */
    
    package com.google.common.base;
    
    import static com.google.common.base.StandardSystemProperty.JAVA_COMPILER;
    import static com.google.common.base.StandardSystemProperty.JAVA_EXT_DIRS;
    import static com.google.common.truth.Truth.assertWithMessage;
    
    import com.google.common.annotations.GwtIncompatible;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link StandardSystemProperty}.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 10 08:40:05 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/StandardSystemProperty.java

       *     Java 8 and removed in Java 9. We do not plan to remove this API from Guava, but if you are
       *     using it, it is probably not doing what you want.
       */
      @Deprecated
      JAVA_EXT_DIRS("java.ext.dirs"),
    
      /** Operating system name. */
      OS_NAME("os.name"),
    
      /** Operating system architecture. */
      OS_ARCH("os.arch"),
    
      /** Operating system version. */
      OS_VERSION("os.version"),
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

            .containsExactly(rootDir, fileA, fileB, dir1, dir2);
      }
    
      @CanIgnoreReturnValue
      private File newDir(String name) {
        File file = new File(rootDir, name);
        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 May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 20:17:27 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/IoTestCase.java

       * deleted in the tear-down for this test.
       */
      protected final File createTempDir() throws IOException {
        File tempFile = File.createTempFile("IoTestCase", "");
        if (!tempFile.delete() || !tempFile.mkdir()) {
          throw new IOException("failed to create temp dir");
        }
        filesToDelete.add(tempFile);
        return tempFile;
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top