func (t *MigrateHashTask) Start() {
	if !t.Scene.OSHash.Valid || !t.Scene.Checksum.Valid {
		// nothing to do
		return
	}

	oshash := t.Scene.OSHash.String
	checksum := t.Scene.Checksum.String

	oldHash := oshash
	newHash := checksum
	if t.fileNamingAlgorithm == models.HashAlgorithmOshash {
		oldHash = checksum
		newHash = oshash
	}

	scene.MigrateHash(instance.Paths, oldHash, newHash)
}
// Start starts the task.
Start starts the task.
// Start starts the task .
func (t *MigrateHashTask) Start() {
	if !t.Scene.OSHash.Valid || !t.Scene.Checksum.Valid {
		return
	}
	oshash := t.Scene.OSHash.String
	checksum := t.Scene.Checksum.String
	oldHash := oshash
	newHash := checksum
	if t.fileNamingAlgorithm == models.HashAlgorithmOshash {
		oldHash = checksum
		newHash = oshash
	}
	scene.MigrateHash(instance.Paths, oldHash, newHash)
}
func ( t * MigrateHashTask ) Start ( ) { if ! t . Scene . OSHash . Valid || ! t . Scene . Checksum . Valid { return } oshash := t . Scene . OSHash . String checksum := t . Scene . Checksum . String oldHash := oshash newHash := checksum if t . fileNamingAlgorithm == models . HashAlgorithmOshash { oldHash = checksum newHash = oshash } scene . MigrateHash ( instance . Paths , oldHash , newHash ) }
Start starts the task.
Start starts the task .
// nothing to do