Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for mkdir (0.15 sec)

  1. src/test/java/jcifs/tests/EnumTest.java

                try ( SmbFile a = new SmbFile(f, "a/");
                      SmbFile b = new SmbFile(f, "b.txt");
                      SmbFile c = new SmbFile(f, "c.bar") ) {
    
                    a.mkdir();
    
                    b.createNewFile();
                    boolean haveHidden = false;
                    try {
                        b.setAttributes(SmbConstants.ATTR_HIDDEN);
                        haveHidden = true;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/misc/DynamicProperties.java

            this.propertiesFile = file;
            if (!this.propertiesFile.exists()) {
                final File parentDir = this.propertiesFile.getParentFile();
                if (!parentDir.exists()) {
                    if (!parentDir.mkdir()) {
                        throw new FileAccessException("ECL0109", new Object[] { file.getAbsolutePath() });
                    }
                } else if (!parentDir.isDirectory()) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9.6K 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. src/test/java/jcifs/tests/FileOperationsTest.java

                  SmbFile d = createTestDirectory();
                  SmbResource d1 = new SmbFile(defaultShareRoot, makeRandomDirectoryName());
                  SmbFile d2 = new SmbFile(d, makeRandomDirectoryName()) ) {
                d1.mkdir();
                boolean renamed = false;
                try {
                    d1.renameTo(d2);
                    try {
                        assertTrue(d2.exists());
                        renamed = true;
                    }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  5. 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)
  6. src/test/java/jcifs/tests/WatchTest.java

        }
    
    
        @Test
        public void testWatchRecursive () throws InterruptedException, ExecutionException, IOException {
            try ( SmbResource subdir = this.base.resolve("test/") ) {
                subdir.mkdir();
                try ( SmbWatchHandle w = this.base.watch(FileNotifyInformation.FILE_NOTIFY_CHANGE_FILE_NAME, true) ) {
                    setupWatch(w);
                    try ( SmbResource cr = new SmbFile(subdir, "created") ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.4K bytes
    - Viewed (0)
  7. 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)
  8. maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java

        @Test
        void isMatchingProjectMatchOnDirectoryReturnsTrue(@TempDir File tempDir) {
            String selector = "maven-core";
            final File tempProjectDir = new File(tempDir, "maven-core");
            tempProjectDir.mkdir();
            final MavenProject mavenProject = createMavenProject("maven-core");
            mavenProject.setFile(new File(tempProjectDir, "some-file.xml"));
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 8.6K bytes
    - Viewed (0)
  9. 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)
  10. src/main/java/jcifs/smb/SmbCopyUtil.java

                throws CIFSException {
            String path = dest.getLocator().getUNCPath();
            if ( path.length() > 1 ) {
                try {
                    dest.mkdir();
                    if ( dh.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                        dest.setPathInformation(src.getAttributes(), src.createTime(), src.lastModified(), src.lastAccess());
                    }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
Back to top