Will symbolic links created in unix (linux/osx) still working in windows?
Asked Answered
S

1

6

Is it possible to create a symbolic link with relative path in linux/osx, move the complete folder to windows system and still be able to use the links?

Say a structure is following:

> ln -s ../c/e d

./a
  |
  |-/b
  |  |
  |  |-d -> ../c/e // symlink
  |  
  |-/c
     |
     |-e // original file

so ./a/b/d is a symlink to ./a/c/e. So will this still work on windows, if I will move the whole ./a directory there?

Update:

I found some related questions, but there is no information about relative paths and osx case or they are a bit outdated (2007):

Shadowgraph answered 7/10, 2013 at 17:30 Comment(4)
osx: hfs, linux: ext4, windows: ntfs. (Just common desktop FSs)Shadowgraph
@MartinPrikryl: will the link work as symbolic link also in windows, or you just mean, that you can copy it to windows and back again? does it also work with relative paths?Shadowgraph
@Goofy: nope, I just use it on linux only for now.Shadowgraph
@Shadowgraph No the links won't work on Windows, I've misunderstood your question. Deleting my comment.Inexpungible
B
3

No, on Windows the symbolic link will just show as a file containing the location of the file the symbolic link pointed to.

Bigler answered 29/1, 2014 at 0:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.