Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 22 for createDirectories (0.11 seconds)

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

        // Check if the parent is a directory first because createDirectories will fail if the parent
        // exists and is a symlink to a directory... we'd like for this to succeed in that case.
        // (I'm kind of surprised that createDirectories would fail in that case; doesn't seem like
        // what you'd want to happen.)
        if (!Files.isDirectory(parent)) {
          Files.createDirectories(parent, attrs);
          if (!Files.isDirectory(parent)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 34.6K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        object : ForwardingFileSystem(fileSystem) {
          override fun sink(
            file: Path,
            mustCreate: Boolean,
          ): Sink {
            file.parent?.let {
              createDirectories(it)
            }
            return super.sink(file, mustCreate)
          }
        }
    
      /** The maximum number of bytes that this cache should use to store its data. */
      @get:Synchronized @set:Synchronized
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

            void shouldNotOverwriteExistingMvnDirectory() throws Exception {
                Path projectDir = tempDir.resolve("project");
                Files.createDirectories(projectDir);
    
                Path mvnDir = projectDir.resolve(".mvn");
                Files.createDirectories(mvnDir);
                Path existingFile = mvnDir.resolve("existing.txt");
                Files.writeString(existingFile, "existing content");
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

            tempDir = Files.createTempDirectory("theme-test");
            Files.createDirectories(Paths.get("target", "fess", "WEB-INF", "view"));
            Files.createDirectories(Paths.get("target", "fess", "WEB-INF", "plugin"));
            Files.createDirectories(Paths.get("target", "fess", "images"));
            Files.createDirectories(Paths.get("target", "fess", "css"));
            Files.createDirectories(Paths.get("target", "fess", "js"));
        }
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/app/web/base/FessAdminActionTest.java

            super.setUp(testInfo);
            tempDir = Files.createTempDirectory("fess_admin_test");
            varDir = Files.createDirectories(tempDir.resolve("var"));
            webappDir = Files.createDirectories(tempDir.resolve("webapp"));
            confDir = Files.createDirectories(tempDir.resolve("conf"));
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 22.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            // Test that Files.createDirectories creates nested directories atomically
            Path tempDir = Files.createTempDirectory("toctou_cmd_test");
            try {
                Path nestedPath = tempDir.resolve("a").resolve("b").resolve("c");
                assertFalse(Files.exists(nestedPath));
    
                Files.createDirectories(nestedPath);
    
                assertTrue(Files.exists(nestedPath));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  7. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            FileSystem fs = Jimfs.newFileSystem(Configuration.windows());
    
            Path mavenHome = fs.getPath("C:\\maven");
            Files.createDirectories(mavenHome);
            Path mavenConf = mavenHome.resolve("conf");
            Files.createDirectories(mavenConf);
            Path mavenUserProps = mavenConf.resolve("maven-user.properties");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/job/IndexExportJob.java

            final String content = formatter.format(source, excludeFields);
    
            try {
                final Path basePath = Paths.get(exportPath);
                Files.createDirectories(basePath);
                final Path realBase = basePath.toRealPath();
                Files.createDirectories(filePath.getParent());
                final Path realParent = filePath.getParent().toRealPath();
                if (!realParent.startsWith(realBase)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/io/MoreFilesTest.java

            Jimfs.newFileSystem(
                Configuration.unix().toBuilder()
                    .setSupportedFeatures(ObjectArrays.concat(SYMBOLIC_LINKS, supportedFeatures))
                    .build());
        Files.createDirectories(fs.getPath("dir/b/i/j/l"));
        Files.createFile(fs.getPath("dir/a"));
        Files.createFile(fs.getPath("dir/c"));
        Files.createSymbolicLink(fs.getPath("dir/d"), fs.getPath("b/i"));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                stateDir = homeDir + File.separator + ".jcifs" + File.separator + "handles";
            }
            this.stateDirectory = Paths.get(stateDir);
    
            try {
                Files.createDirectories(stateDirectory);
            } catch (IOException e) {
                log.error("Failed to create handle state directory: " + stateDirectory, e);
            }
    
            // Load persisted handles on startup
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 13K bytes
    - Click Count (0)
Back to Top