makepath function with UNC
Published: May 25, 2023 - 3:42 PM
Good morning,
I would like to report a bug I discovered while working on the WAPT vscode package. It seems that the function makepath() does not handle UNC paths correctly.
Below, I have included an excerpt of my code to illustrate the problem:
As you can see, when I use makepath()The return path is incorrect. However, when I use os.path.join() The UNC path is resolved correctly.
This poses a problem in our environment because we use roaming Windows sessions and we need UNC paths to resolve correctly.
Would it be possible to fix this bug?
General information:
WAPT Server: Debian 11, version 2.3.0.13516, Enterprise Edition
Administration machine: Windows 11, WAPT version 2.3.0.13516
I would like to report a bug I discovered while working on the WAPT vscode package. It seems that the function makepath() does not handle UNC paths correctly.
Below, I have included an excerpt of my code to illustrate the problem:
Code: Select all
user_conf_dir = makepath(user_appdata, "Code", "User") # NOT WORKING
#Résultat : SRV-FICHIERS\Share$\user\Application Data\Code\User
user_conf_dir = os.path.join(user_appdata(), "Code", "User") # GOOD
#Résultat : \\SRV-FICHIERS\Share$\user\Application Data\Code\User
This poses a problem in our environment because we use roaming Windows sessions and we need UNC paths to resolve correctly.
Would it be possible to fix this bug?
General information:
WAPT Server: Debian 11, version 2.3.0.13516, Enterprise Edition
Administration machine: Windows 11, WAPT version 2.3.0.13516