I have a program that needs to verify that it has changed directory to a specified directory. My verification uses the Cwd module and the getcwd() function.
However, my verification fails because the customer has used a symbolic link for the path and getcwd() returns the absolute path.
How can I avoid this type of problem when verifying the current working directory?