I have a relative path
$base_path = \"input/myMock.TGZ\";
myMock.TGZ is the file name located in input folder. The filenam
myMock.TGZ
Use:
if (-f $filePath) { # code }
-e returns true even if the file is a directory. -f will only return true if it's an actual file
-e
-f