瀏覽代碼

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 年之前
父節點
當前提交
7caf2d3ff2
共有 1 個文件被更改,包括 9 次插入3 次删除
  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