Commits

Jonathan Gilbert Gilbert  committed f43b9ea

Case sensitive search is insensitive in Windows
Now actually moves files

  • Participants
  • Parent commits e4bb93b

Comments (0)

Files changed (1)

File Renamer/Main.cs

 			foreach(String filename in filenames)
 				files.Add(new FileWithInfo(filename, eventName));
 			
-			filenames = Directory.GetFiles(currentDir, "*.jpg");
-			foreach(String filename in filenames)
-				files.Add(new FileWithInfo(filename, eventName));
-			
 			files.Sort();
 			
 			int position = 1;
 		public void doRename(){
 			string newName = new FileInfo(file).Directory.FullName + Path.DirectorySeparatorChar + eventName + "_" + position + ".jpg";
 			Console.WriteLine(file + " -> " + newName);
-			//File.Move(file, newName);
+			File.Move(file, newName);
 		}
 		
 		DateTime getDateTaken() {