Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 109 for renameTo (0.11 sec)

  1. 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)
  2. cmd/os-instrumented.go

    func MkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) {
    	defer updateOSMetrics(osMetricMkdirAll, dirPath)(err)
    	return osMkdirAll(dirPath, mode, baseDir)
    }
    
    // Rename captures time taken to call os.Rename
    func Rename(src, dst string) (err error) {
    	defer updateOSMetrics(osMetricRename, src, dst)(err)
    	return RenameSys(src, dst)
    }
    
    // OpenFile captures time taken to call os.OpenFile
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. tests/migrate_test.go

    		gorm.Model
    		Name string
    	}
    
    	if err := DB.Migrator().RenameTable(&TableStruct{}, &NewTableStruct{}); err != nil {
    		t.Fatalf("Failed to rename table, got error %v", err)
    	}
    
    	if !DB.Migrator().HasTable("new_table_structs") {
    		t.Fatal("should found renamed table")
    	}
    
    	DB.Migrator().DropTable("new_table_structs")
    
    	if DB.Migrator().HasTable(&NewTableStruct{}) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. cmd/xl-storage-meta-inline.go

    		plSize += len(key) + len(value) + msgp.StringPrefixSize + msgp.ArrayHeaderSize
    	}
    
    	// Reserialize...
    	x.serialize(plSize, keys, vals)
    }
    
    // rename will rename a key.
    // Returns whether the key was found.
    func (x *xlMetaInlineData) rename(oldKey, newKey string) bool {
    	in := x.afterVersion()
    	sz, buf, _ := msgp.ReadMapHeaderBytes(in)
    	keys := make([][]byte, 0, sz)
    	vals := make([][]byte, 0, sz)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. cmd/storage-errors.go

    // verification is empty or invalid.
    var errBitrotHashAlgoInvalid = StorageErr("bit-rot hash algorithm is invalid")
    
    // errCrossDeviceLink - rename across devices not allowed.
    var errCrossDeviceLink = StorageErr("Rename across devices not allowed, please fix your backend configuration")
    
    // errLessData - returned when less data available than what was requested.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java

            // ----------------------------------------------------------------------------
            // I'm fully aware that the file could just be moved using File.rename but
            // there are bugs in various JVM that have problems doing this across
            // different filesystem. So we'll incur the small hit to actually copy
            // here and be safe. jvz.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. migrator/migrator.go

    		).Row().Scan(&count)
    	})
    
    	return count > 0
    }
    
    // RenameIndex rename index from oldName to newName
    func (m Migrator) RenameIndex(value interface{}, oldName, newName string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		return m.DB.Exec(
    			"ALTER TABLE ? RENAME INDEX ? TO ?",
    			m.CurrentTable(stmt), clause.Column{Name: oldName}, clause.Column{Name: newName},
    		).Error
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 26 07:15:49 UTC 2024
    - 29K bytes
    - Viewed (0)
  10. 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)
Back to top