xRobocopy icon indicating copy to clipboard operation
xRobocopy copied to clipboard

Missing ExcludeDirs param

Open gerane opened this issue 9 years ago • 1 comments

In the Master and Dev branch, you do not have an ExcludeDirs param

# Helper Functions
function Get-RobocopyArguments
{
    [CmdletBinding()]
    [OutputType([System.String[]])]
    param
    (
        [parameter(Mandatory = $true)]
        [System.String]
        $Source,

        [parameter(Mandatory = $true)]
        [System.String]
        $Destination,

        [System.String]
        $Files,

        [System.UInt32]
        $Retry,

        [System.UInt32]
        $Wait,

        [System.Boolean]
        $SubdirectoriesIncludingEmpty,

        [System.Boolean]
        $Restartable,

        [System.Boolean]
        $MultiThreaded,

        [System.String]
        $ExcludeFiles,

        [System.String]
        $LogOutput,

        [System.Boolean]
        $AppendLog,

        [System.String[]]
        $AdditionalArgs
    )

but when building the robocopy arguments, you are checking for the param to set /XD

if ($ExcludeDirs) 
{
    $arguments += @('/XD', $ExcludeDirs)
}

I was not sure if you meant to have ExcludeDirs or if it was removed and the added check was just forgotten about.

gerane avatar May 12 '16 14:05 gerane

@gerane : Thanks for reporting this issue

narrieta avatar May 13 '16 18:05 narrieta