Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for mkdir (0.2 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbFile.java

     *
     * @throws SmbException
     */
        public void mkdirs() throws SmbException {
            SmbFile parent;
    
            try {
                parent = new SmbFile( getParent(), auth );
            } catch( IOException ioe ) {
                return;
            }
            if( parent.exists() == false ) {
                parent.mkdirs();
            }
            mkdir();
        }
    
    /**
    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)
  2. 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)
  3. 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)
  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. 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)
  6. src/test/java/jcifs/tests/BaseCIFSTest.java

            try ( SmbFile defaultShareRoot = getDefaultShareRoot() ) {
                SmbFile f = new SmbFile(defaultShareRoot, makeRandomDirectoryName());
                f.mkdir();
                return f;
            }
        }
    
    
        protected void cleanupTestDirectory ( SmbResource f ) throws CIFSException {
            if ( f != null ) {
                f.delete();
            }
        }
    
    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)
  7. src/main/java/jcifs/smb/SmbFile.java

                        }
                        parent.mkdirs();
                    }
                }
                catch ( SmbException e ) {
                    if ( log.isDebugEnabled() ) {
                        log.debug("Failed to ensure parent exists " + p, e);
                    }
                    throw e;
                }
                try {
                    mkdir();
                }
                catch ( SmbException e ) {
    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)
  8. src/main/java/jcifs/SmbResource.java

         * because workgroups, servers, and shares cannot be dynamically created
         * (although in the future it may be possible to create shares).
         *
         * @throws CIFSException
         */
        void mkdir () throws CIFSException;
    
    
        /**
         * This method returns the free disk space in bytes of the drive this share
         * represents or the drive on which the directory or file resides. Objects
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
Back to top