Skip to content

Commit

Permalink
v0.6.1
Browse files Browse the repository at this point in the history
Removed debugging code
  • Loading branch information
D-Jeffrey committed Mar 10, 2024
1 parent e5283bd commit 0ba463c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions EmbroideryCollection-Cleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ $paramswitch =[ordered]@{
#
#

$ECCVERSION = "v0.6.0"
$ECCVERSION = "v0.6.1"
write-host " ".padright(15) "Embroidery Collection Cleanup version: $ECCVERSION".padright(70) -ForegroundColor White -BackgroundColor Blue


Expand Down Expand Up @@ -2335,19 +2335,18 @@ if ($CloudAPI -and $CloudAuthAvailable) {
if ($samePath -eq $null) {
$samePathid = ""
if ($thisfile.RelPath -ne '') {
write-host "Making New Path : " $thisfile.RelPath
write-verbose "Making New Path : " $thisfile.RelPath
$samePathid = MakeCloudPathID -path $thisfile.RelPath
}
} else {

$samePathid = $samePath.id
}


write-host ")) Is $($thisfile.N) from '$($thisfile.CloudRef.FolderId)' to '$($samePathid)'"
if ($thisfile.CloudRef.FolderId -ne $samePathid -and $isOkToMove) {
write-host ")) Relocated $($thisfile.N) from $($thisfile.CloudRef.FolderId) to $($samePathid)"
write-verbose ")) Relocated $($thisfile.N) from $($thisfile.CloudRef.FolderId) to $($samePathid)"
MoveCloudFile -fileid $thisfile.CloudRef.Id -toFolderid $samePathid
LogAction -File ($thisfile.RelPath + "\" + $thisfile.N) -Action "^^Cloud-Move"
}

} else {
Expand Down

0 comments on commit 0ba463c

Please sign in to comment.