Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SmbResource (0.14 sec)

  1. src/main/java/jcifs/SmbResource.java

         */
        void copyTo ( SmbResource dest ) throws CIFSException;
    
    
        /**
         * Changes the name of the file this <code>SmbResource</code> represents to the name
         * designated by the <code>SmbResource</code> argument.
         * <br>
         * <i>Remember: <code>SmbResource</code>s are immutable and therefore
         * the path associated with this <code>SmbResource</code> object will not
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  2. src/test/java/jcifs/tests/FileLocationTest.java

            }
        }
    
    
        // #41
        @Test
        public void testGetNameServer () throws MalformedURLException, CIFSException {
            try ( SmbResource r = new SmbFile("smb://0.0.0.0/", getContext());
                  SmbResource s = r.resolve("Public/");
                  SmbResource p = s.resolve("MyVideo.mkv"); ) {
    
                SmbResourceLocator fl = p.getLocator();
    
                assertEquals("0.0.0.0", fl.getServer());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/DfsTest.java

            CIFSContext context = getContext();
            context = withTestNTLMCredentials(context);
    
            try ( SmbResource root = context.get(getTestShareURL()) ) {
                root.exists();
    
                try ( SmbResource t = root.resolve(makeRandomName()) ) {
                    try {
                        t.createNewFile();
                    }
                    finally {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 13.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/ConcurrencyTest.java

            private Object shutdownLock = new Object();
            private volatile boolean shutdown;
            private SmbResource file;
    
    
            /**
             * @param smbFile
             * 
             */
            public ExclusiveLockFirst ( SmbResource smbFile ) {
                this.file = smbFile;
            }
    
    
            public void waitForStart () throws InterruptedException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/EnumTest.java

                try ( SmbResource c = f.resolve("c/") ) {
                    if ( !c.exists() ) {
                        c.mkdirs();
                    }
                }
    
                Set<String> names = new HashSet<>();
                try ( CloseableIterator<SmbResource> chld = f.children() ) {
                    while ( chld.hasNext() ) {
    
                        try ( SmbResource next = chld.next() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/FileOperationsTest.java

            try ( SmbFile defaultShareRoot = getDefaultShareRoot();
                  SmbResource f = new SmbFile(defaultShareRoot, makeRandomName());
                  SmbResource p = new SmbFile(getTestShareGuestURL(), getContext());
                  SmbResource tgt = new SmbFile(p, "other-share") ) {
                f.createNewFile();
                boolean renamed = false;
                try {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                throws SmbException {
            try ( CloseableIterator<SmbResource> it = doEnum(root, wildcard, searchAttributes, fnf == null ? null : new ResourceNameFilter() {
    
                @Override
                public boolean accept ( SmbResource parent, String name ) throws CIFSException {
                    if ( ! ( parent instanceof SmbFile ) ) {
                        return false;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 20 08:41:19 UTC 2019
    - 12.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/KerberosTest.java

    import org.junit.runners.Parameterized.Parameters;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.ResolverType;
    import jcifs.SmbResource;
    import jcifs.SmbTreeHandle;
    import jcifs.smb.JAASAuthenticator;
    import jcifs.smb.Kerb5Authenticator;
    import jcifs.smb.SmbException;
    import jcifs.smb.SmbFile;
    import jcifs.smb.SmbSessionInternal;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/SessionTest.java

            try ( SmbResource f = new SmbFile(getTestShareURL(), ctx); ) {
                checkConnection(f);
                f.resolve("test").exists();
            }
        }
    
    
        @Test
        public void logonAnonymous () throws IOException {
            try ( SmbResource f = new SmbFile(getTestShareGuestURL(), withAnonymousCredentials()) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  10. 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)
Back to top