Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for renameTo (0.06 sec)

  1. src/test/java/jcifs/SmbResourceTest.java

                verify(mockResource).renameTo(destination);
                verify(mockResource).renameTo(destination, true);
            }
    
            @Test
            @DisplayName("renameTo should throw NullPointerException for null destination")
            void testRenameTo_NullDestination() throws CIFSException {
                // Given
                doThrow(new NullPointerException("dest argument is null")).when(mockResource).renameTo(null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileTest.java

            void testRenameToSameFile() throws MalformedURLException, SmbException {
                // Arrange
                doThrow(new SmbException("Cannot rename to same file")).when(smbFile).renameTo(smbFile);
    
                // Act & Assert
                assertThrows(SmbException.class, () -> smbFile.renameTo(smbFile));
            }
    
            @Test
            void testCreateNewFileWhenExists() throws SmbException, IOException {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

          super(file.getPath());
          this.canRename = canRename;
          this.canDelete = canDelete;
        }
    
        @Override
        public boolean renameTo(File to) {
          return canRename && super.renameTo(to);
        }
    
        @Override
        public boolean delete() {
          return canDelete && super.delete();
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

          super(file.getPath());
          this.canRename = canRename;
          this.canDelete = canDelete;
        }
    
        @Override
        public boolean renameTo(File to) {
          return canRename && super.renameTo(to);
        }
    
        @Override
        public boolean delete() {
          return canDelete && super.delete();
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResource.java

         * @throws NullPointerException
         *             If the <code>dest</code> argument is <code>null</code>
         */
        void renameTo(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>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  6. src/main/java/jcifs/smb/SmbFile.java

            return SmbEnumerationUtil.doEnum(this, "*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, filter);
        }
    
        @Override
        public void renameTo(final SmbResource d) throws SmbException {
            renameTo(d, false);
        }
    
        @Override
        public void renameTo(final SmbResource d, final boolean replace) throws SmbException {
            if (!(d instanceof final SmbFile dest)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

            }
    
            if (LogStream.level >= 3) {
                log.println("renameTo: " + unc + " -> " + dest.unc);
            }
    
            attrExpiration = sizeExpiration = 0;
            dest.attrExpiration = 0;
    
            /*
             * Rename Request / Response
             */
    
            send(new SmbComRename(unc, dest.unc), blank_resp());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/com/SmbComRename.java

     *
     * This command renames a file or directory on the SMB server.
     * It takes an old filename and new filename and performs the rename operation.
     */
    public class SmbComRename extends ServerMessageBlock {
    
        private final int searchAttributes;
        private final String oldFileName;
        private final String newFileName;
    
        /**
         * Constructs a rename request.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. cmd/erasure-multipart.go

    	g := errgroup.WithNErrs(len(disks))
    
    	// Rename file on all underlying storage disks.
    	for index := range disks {
    		g.Go(func() error {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			return disks[index].RenamePart(ctx, srcBucket, srcEntry, dstBucket, dstEntry, optsMeta, skipParent)
    		}, index)
    	}
    
    	// Wait for all renames to finish.
    	errs := g.Wait()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
  10. docs/bigdata/README.md

    stores such as MinIO. MapReduce workloads typically interact with object stores in the same way they do with HDFS. These workloads rely on HDFS atomic rename functionality to complete writing data to the datastore. Object storage operations are atomic by nature and they do not require/implement rename API. The default S3A committer emulates renames through copy and delete APIs. This interaction pattern causes significant loss of performance because of the write amplification. _Netflix_, for example,...
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 14.7K bytes
    - Viewed (0)
Back to top