I have a relative path
$base_path = "input/myMock.TGZ";
myMock.TGZ
is the file name located in input folder.
The filename can change. But the path is always stored in $base_path
.
I need to check if the file exists in $base_path
.
转载于:https://stackoverflow.com/questions/2601027/how-can-i-check-if-a-file-exists-in-perl