Code snippet
if(shell.test('-f', '/Users/test/protractor/MyProject/downloadedFiles/TestFile.csv')){
shell.echo('File exist');
} else {
shell.echo('File not exist');
}
The above piece of code is working fine since i mentioned the full path of the file but if the filename contains a wildcard character
eg /Users/test/protractor/MyProject/downloadedFiles/*.csv
then the script is always failing and prints the else block always..
Please correct me if there is anything wrong with my code..!!