Symbolic links on Windows

ast ast at invalid
Wed Nov 17 08:41:58 EST 2021


Le 17/11/2021 à 13:10, Python a écrit :
> ast wrote:
>> Hello,
>>
>> It seems that symbolic links on Windows are not
>> well reconized by modules os or pathlib.
>>
>> I have a file named json.txt on my destop. With a
>> drag and drop right click on it I create a link
>> automatically named: json.txt - Raccourci.lnk
> 
> This is not a symbolic link.
> 
> Symbolic links were introduced in Windows Vista/Windows
> Server 2008. A .lnk file is just a regular file containing
> the path of the target (you can open it and read it if you
> wish) that is interpreted in a specific way by the graphical
> Shell and some other applications.
> 
> 

Yes you are right

On Windows symbolic links are created in a cmd tool:
e.g

mklink json2.txt json.txt

And it is something different than shortcut files (suffix .lnk)


More information about the Python-list mailing list