Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TYPE_SHARE (0.07 sec)

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

            attrExpiration = sizeExpiration = 0;
        }
    
    /**
     * Returns the length of this <tt>SmbFile</tt> in bytes. If this object
     * is a <tt>TYPE_SHARE</tt> the total capacity of the disk shared in
     * bytes is returned. If this object is a directory or a type other than
     * <tt>TYPE_SHARE</tt>, 0L is returned.
     *
     * @return The length of the file in bytes or 0 if this
     * <code>SmbFile</code> is not a file.
     * @throws SmbException
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileAttributesTest.java

            try ( SmbResource f = getDefaultShareRoot() ) {
                checkConnection(f);
                if ( f.getType() != SmbConstants.TYPE_FILESYSTEM ) {
                    assertEquals(SmbConstants.TYPE_SHARE, f.getType());
                }
            }
        }
    
    
        @Test
        public void testGetFreeSpace () throws CIFSException, MalformedURLException {
            try ( SmbResource f = getDefaultShareRoot() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

                return SmbConstants.TYPE_PRINTER;
            }
            else if ( "COMM".equals(connectedService) ) {
                return SmbConstants.TYPE_COMM;
            }
            return SmbConstants.TYPE_SHARE;
        }
    
    
        /**
         * @return the service
         */
        public String getService () {
            return this.service;
        }
    
    
        /**
         * @return the share
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 29.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFile.java

                    // referrals.
                    try ( SmbTreeHandleImpl th = ensureTreeConnected() ) {
                        if ( this.fileLocator.getType() == TYPE_SHARE ) {
                            // treeConnect is good enough, but we need to do this after resolving DFS
                            try ( SmbTreeHandleImpl th2 = ensureTreeConnected() ) {}
                        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
Back to top