Selaa lähdekoodia

Actually copy music from the server to the portable drive

Wrong paths were being passed, meaning new music was never actually being copied to the portable drive. This was very very bad.
Jason Tarka 2 vuotta sitten
vanhempi
sitoutus
7caf2d3ff2
1 muutettua tiedostoa jossa 9 lisäystä ja 3 poistoa
  1. 9 3
      windows/DJ/Sync-DJ.ps1

+ 9 - 3
windows/DJ/Sync-DJ.ps1

@@ -16,10 +16,16 @@
 }
 
 class Choice {
+	# Text to display in the option selection.
     [string] $DisplayName
+    # Source diretory.
     [string] $Source
+    # Destination directory.
     [string] $Dest
+    # If true, rename the existing folder with a date suffix, then copy
+    # source files to a new folder at the path.
     [boolean] $MakeBackup
+    # If true, skip re-copying files if only timestamps are different.
     [boolean] $IgnoreTimestamps
 
     Choice($displayName, $source, $dest, $makeBackup, $ignoreTimestamps) {
@@ -98,8 +104,8 @@ $CHOICES = @(
     # Music
     [Choice]::new(
         "Music:   Server  --> Drive",
-        [SourceDirs]::Music_MixxxConfig,
-        [SourceDirs]::MixxxConfig,
+        [SourceDirs]::Music_Music,
+        [SourceDirs]::Drive_Music,
         $false,  # Make Backup
         $true  # Ignore Timestamps
     ),
@@ -244,4 +250,4 @@ function Main() {
     pause ([string]::Format("Done running {0}!", $option.DisplayName))
 }
 
-Main
+Main