public static IScriptCommand DiskTransferChild(string srcDirectoryVariable = "{Source}", string destDirectoryVariable = "{DestinationDirectory}", string mask = "*", ListOptions listOptions = ListOptions.File | ListOptions.Folder, bool removeOriginal = false, bool allowCustomImplementation = true, IScriptCommand nextCommand = null) { return(CoreScriptCommands.List(srcDirectoryVariable, "{DTC-ItemToTransfer}", mask, listOptions, ScriptCommands.ForEach("{DTC-ItemToTransfer}", "{DTC-CurrentItem}", IOScriptCommands.DiskTransfer("{DTC-CurrentItem}", destDirectoryVariable, null, removeOriginal, allowCustomImplementation), ScriptCommands.Reset(nextCommand, "{DTC-DestDirectory}", "{DTC-SrcDirectory}")))); }