/* Iterates through args, creating a new File instance * for each element. */ private static void Parse(string[] args, int modifier) { Debug.Trace($"Command Line Arguments: Arguments = {args.Length} Modifier = {modifier}"); // Iterate args, creating instance of File for each foreach (string path in args) { new File(path, KeyModifier.GetModifier()); } }
/* Transfers all files (paths) found within args to their designated * file destination based on user-defined directories and key modifiers. */ private static void InitTransfer(string[] args) { var watch = new System.Diagnostics.Stopwatch(); // Used for recording code execution time watch.Start(); Parse(args, KeyModifier.GetModifier()); FileTransfer.Transfer(true); watch.Stop(); Debug.Trace($"Total Transfer Time: {watch.ElapsedMilliseconds}ms"); if (true) { Debug.ShowEnd(); } }