Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for renameTo (0.07 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                // File.renameTo operation doesn't really work across file systems.
                // So we will attempt to do a File.renameTo for efficiency and atomicity, if this fails
                // then we will use a brute force copy and delete the temporary file.
                if (!temp.renameTo(destination)) {
                    try {
                        Files.copy(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/MoreExecutors.java

      // calculate names?
    
      /**
       * Creates an {@link Executor} that renames the {@link Thread threads} that its tasks run in.
       *
       * <p>The names are retrieved from the {@code nameSupplier} on the thread that is being renamed
       * right before each task is run. The renaming is best effort, if a {@link SecurityManager}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    	g := errgroup.WithNErrs(len(disks))
    
    	// Rename file on all underlying storage disks.
    	for index := range disks {
    		index := index
    		g.Go(func() error {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			return disks[index].RenamePart(ctx, srcBucket, srcEntry, dstBucket, dstEntry, optsMeta)
    		}, index)
    	}
    
    	// Wait for all renames to finish.
    	errs := g.Wait()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  4. cmd/storage-rest-client.go

    	}
    
    	for i, dErr := range dErrResp.Errs {
    		if dErr != "" {
    			errs[i] = toStorageErr(errors.New(dErr))
    		} else {
    			errs[i] = nil
    		}
    	}
    
    	return errs
    }
    
    // RenamePart - renames multipart part file
    func (client *storageRESTClient) RenamePart(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string, meta []byte) (err error) {
    	ctx, cancel := context.WithTimeout(ctx, globalDriveConfig.GetMaxTimeout())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    				for _, entry := range legacyEntries {
    					// Skip xl.meta renames further, also ignore any directories such as `legacyDataDir`
    					if entry == xlStorageFormatFile || strings.HasSuffix(entry, slashSeparator) {
    						continue
    					}
    
    					if err = Rename(pathJoin(currentDataPath, entry), pathJoin(legacyDataPath, entry)); err != nil {
    						// Any failed rename calls un-roll previous transaction.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  6. ci/official/utilities/rename_and_verify_wheels.sh

    #
    # Usage: rename_and_verify_wheels.sh
    # This script is aware of TFCI_ variables, so it doesn't need any arguments.
    # Puts new wheel through auditwheel to rename and verify it, deletes the old
    # one, checks the filesize, and then ensures the new wheel is installable.
    set -euxo pipefail
    
    cd "$TFCI_OUTPUT_DIR"
    
    # Move extra wheel files somewhere out of the way. This script
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 21:18:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/body-updates.md

    Like `item.model_dump(exclude_unset=True)`.
    
    /// info
    
    In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`.
    
    The examples here use `.dict()` for compatibility with Pydantic v1, but you should use `.model_dump()` instead if you can use Pydantic v2.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. cmd/erasure-healing.go

    	}
    
    	defer er.deleteAll(context.Background(), minioMetaTmpBucket, tmpID)
    
    	// Rename from tmp location to the actual location.
    	for i, disk := range outDatedDisks {
    		if disk == OfflineDisk {
    			continue
    		}
    
    		// record the index of the updated disks
    		partsMetadata[i].Erasure.Index = i + 1
    
    		// Attempt a rename now from healed data to final location.
    		partsMetadata[i].SetHealing()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  9. RELEASE.md

        *   Renames `experimental_hints` in
            `tf.distribute.StrategyExtended.reduce_to`,
            `tf.distribute.StrategyExtended.batch_reduce_to`,
            `tf.distribute.ReplicaContext.all_reduce` to `options`.
        *   Renames `tf.distribute.experimental.CollectiveHints` to
            `tf.distribute.experimental.CommunicationOptions`.
        *   Renames `tf.distribute.experimental.CollectiveCommunication` to
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
  10. src/README.vendor

    be resolved normally. Consequently, a binary may be built with two
    copies of a package at different versions if the package is
    imported normally and vendored by the standard library.
    
    Vendored packages are internally renamed with a "vendor/" prefix
    to preserve the invariant that all packages have distinct paths.
    This is necessary to avoid compiler and linker conflicts. Adding
    a "vendor/" prefix also maintains the invariant that standard
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 30 19:15:39 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top