automationdev300m87: #i112208# - And reverted last change - debug is off again.
This commit is contained in:
parent
9341a37b70
commit
97547b7629
1 changed files with 8 additions and 5 deletions
|
@ -623,17 +623,20 @@ function hFileOpenLocally( byVal sSourcePath as string ) as boolean
|
|||
' Find out what the name of the target file is going to be
|
||||
sTargetPath = hFileGetLocalPath( sSourcePath ) ' The path + file
|
||||
|
||||
' Copy the file from anywhere to the local user directory if it does not
|
||||
' For debugging purposes set global variable gVerbose to TRUE
|
||||
if ( gVerbose ) then
|
||||
printlog( CFN & "Copying file" )
|
||||
printlog( CFN & "From: " & sSourcePath )
|
||||
printlog( CFN & "To..: " & sTargetPath )
|
||||
endif
|
||||
|
||||
' Copy the file from anywhere to the local user directory if it does not
|
||||
' exist. This behavior was discussed on IRC
|
||||
if ( FileExists( sTargetPath ) ) then
|
||||
'printlog( CFN & "Re-using existing local copy of workfile" )
|
||||
warnlog( CFN & "Target file exists, it has not been deleted by prior test" )
|
||||
endif
|
||||
|
||||
printlog( CFN & "Copying file" )
|
||||
printlog( CFN & "From: " & sSourcePath )
|
||||
printlog( CFN & "To..: " & sTargetPath )
|
||||
|
||||
FileCopy( sSourcePath, sTargetPath )
|
||||
|
||||
' Verify that the file has been created. return an empty string and warn
|
||||
|
|
Loading…
Reference in a new issue