Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for createTempDirectory (0.44 sec)

  1. guava-tests/test/com/google/common/reflect/ClassPathTest.java

    import static java.nio.file.Files.createDirectory;
    import static java.nio.file.Files.createFile;
    import static java.nio.file.Files.createSymbolicLink;
    import static java.nio.file.Files.createTempDirectory;
    import static java.util.logging.Level.WARNING;
    
    import com.google.common.base.Joiner;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Files.java

       *     java.nio.file.Files#createTempDirectory}, transforming it to a {@link File} using {@link
       *     java.nio.file.Path#toFile() toFile()} if needed. To restrict permissions as this method
       *     does, pass {@code
       *     PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwx------"))} to your
       *     call to {@code createTempDirectory}.
       */
      @Beta
      @Deprecated
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Files.java

       *     java.nio.file.Files#createTempDirectory}, transforming it to a {@link File} using {@link
       *     java.nio.file.Path#toFile() toFile()} if needed. To restrict permissions as this method
       *     does, pass {@code
       *     PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwx------"))} to your
       *     call to {@code createTempDirectory}.
       */
      @Beta
      @Deprecated
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/TempFileCreator.java

      private static final class JavaNioCreator extends TempFileCreator {
        @Override
        File createTempDir() {
          try {
            return java.nio.file.Files.createTempDirectory(
                    Paths.get(JAVA_IO_TMPDIR.value()), /* prefix= */ null, directoryPermissions.get())
                .toFile();
          } catch (IOException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/MoreFilesTest.java

      private static Path root() {
        return FS.getRootDirectories().iterator().next();
      }
    
      private Path tempDir;
    
      @Override
      protected void setUp() throws Exception {
        tempDir = Files.createTempDirectory("MoreFilesTest");
      }
    
      @Override
      protected void tearDown() throws Exception {
        if (tempDir != null) {
          // delete tempDir and its contents
          Files.walkFileTree(
              tempDir,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

      private static Path root() {
        return FS.getRootDirectories().iterator().next();
      }
    
      private Path tempDir;
    
      @Override
      protected void setUp() throws Exception {
        tempDir = Files.createTempDirectory("MoreFilesTest");
      }
    
      @Override
      protected void tearDown() throws Exception {
        if (tempDir != null) {
          // delete tempDir and its contents
          Files.walkFileTree(
              tempDir,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        return new File(new File(path).toURI());
      }
    
      private static URL makeJarUrlWithName(String name) throws IOException {
        /*
         * TODO: cpovirk - Use java.nio.file.Files.createTempDirectory instead of
         * c.g.c.io.Files.createTempDir?
         */
        File fullPath = new File(Files.createTempDir(), name);
        File jarFile = pickAnyJarFile();
        Files.copy(jarFile, fullPath);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
Back to top