MCPcopy
hub / github.com/spicetify/cli / MigrateConfigFolder

Function MigrateConfigFolder

src/utils/path-utils.go:11–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func MigrateConfigFolder() {
12 if runtime.GOOS == "windows" {
13 source := filepath.Join(os.Getenv("USERPROFILE"), ".spicetify")
14 if _, err := os.Stat(source); err == nil {
15 spinner, _ := Spinner.Start("Migrating config folder")
16 destination := GetSpicetifyFolder()
17 err := Copy(source, destination, true, nil)
18 if err != nil {
19 spinner.Fail("Failed to migrate config folder")
20 Fatal(err)
21 }
22 os.RemoveAll(source)
23 spinner.Success("Migrated config folder")
24 }
25 }
26}
27
28func MigrateFolders() {
29 backupPath := filepath.Join(GetSpicetifyFolder(), "Backup")

Callers 2

initFunction · 0.92
ApplyFunction · 0.92

Calls 3

GetSpicetifyFolderFunction · 0.85
CopyFunction · 0.85
FatalFunction · 0.85

Tested by

no test coverage detected