소스 검색

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