PathInfo and V_flag

I made a new path via the Misc->New Path... dialog. Shortly afterward I deleted the directory that path was pointed to. I thought calling PathInfo would put the truth of whether the directory exists in V_flag. It seems to instead put the truth of whether the path exists in Igor. I probably misinterpreted what PathInfo does.

I was trying to do this:
PathInfo $pathName
If ( !V_flag )
    return -1
endif


But I think it should work like this:
PathInfo $pathName
GetFileFolderInfo/D/Q/Z S_path
If ( V_flag )
    return -1
endif
PathInfo returns, via V_flag, the truth that the Igor symbolic path exists. You are correct to use GetFileFolderInfo to test if the folder on disk exists.

You might want to test V_flag after calling PathInfo and before calling GetFileFolderInfo.
hrodstein wrote:
You might want to test V_flag after calling PathInfo and before calling GetFileFolderInfo.

Good point.