Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa03e83

Browse files
Improve overall structure and fixed minor bugs
1 parent e345da1 commit aa03e83

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎Project_Set-TouchFile/Helpers/ValidationHelper/Confirm-Filename.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Confirm-Filename {
4444
# Ensure the new filename doesn't crash with existing file
4545
Write-Verbose "Checking filename '$filename' for duplicates..."
4646
$fullPath = Join-Path -Path $fileFolder -ChildPath $filename
47-
if (Test-Path -Path $targetFilePath) {
47+
if (Test-Path -Path $fullPath) {
4848
Write-Warning "Your provided filename '$filename' already exists in '$filefolder'."
4949
return $false
5050
}

‎Project_Start-FastCopy/Helpers/ValidationHelper/Confirm-SFCArgs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function Confirm-SFCArgs {
4141
parameter descriptions.
4242
4343
.OUTPUTS
44-
None. Writes progress and status messages to host.
44+
4545
4646
#>
4747

‎Project_Start-FastCopy/Start-FastCopy.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function Start-FastCopy {
107107

108108
[Parameter(Mandatory = $false)]
109109
[Alias("Speed")]
110-
[int]$intSpeed,
110+
[int]$intSpeed=0,
111111

112112
[Parameter(Mandatory = $false)]
113113
[Alias("Delay")]
@@ -135,7 +135,7 @@ function Start-FastCopy {
135135

136136
# Define action description for WhatIf/Confirm support
137137
$action = "Copy data from $sourceFolderPath"
138-
$target = "Path: $targetFolderPath"
138+
$target = "$targetFolderPath"
139139
$config = Get-Config
140140

141141
# Apply override logic for fast copy path

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /