Equivalent of shell ‘cd’ command to change the working directory?
You can change the working directory with: There are two best practices to follow when using this method: Catch the exception (WindowsError, OSError) on invalid path. If the exception is thrown, do not perform any recursive operations, especially destructive ones. They will operate on the old path and not the new one. Return to your … Read more