Softlink in Windows (NTFS drive)

mklink /d %HOMEDRIVE%%HOMEPATH%\data D:\data

Is an example softlink on Windows for linking:

D:\data (e.g. external USB drive)

to

~/data

so that your Python programs work with the same ~/data path in Windows and Linux.

ln -s /media/myusbdrive/data ~/data

Notice that the order of target arguments are reversed between Windows and Linux.

Categories:

Updated: