Expected behavior
_getfinalpathname (from python module ‘nt’ ) show path of symlink
Actual behavior
_getfinalpathname (from python module ‘nt’ ) couldn’t get path of symlink
Information
Windows Server 2016 (same problem fixed on Windows Server 1709 too)
Docker version 17.06.2-ee-6, build e75fdb8
Steps to reproduce the behavior
- mkdir c:\test
- docker run -v c:\test:c:\test -it python:3.6-windowsservercore
- from nt import _getfinalpathname
- _getfinalpathname(‘c:\’)
5._getfinalpathname(‘c:\test’)
Step#4 Show ‘\\?\C:\’ - it’s OK
Step#5 Show Error
_getfinalpathname(‘c:\test’)
Traceback (most recent call last):
File “”, line 1, in
FileNotFoundError: [WinError 2] The system cannot find the file specified: ‘c:\test’