Re: FileUtils.ln_s in Vista



Fernando Cacciola wrote:
I just found out that Windows Vista supports symbolic links.

Contrary to Microsoft propaganda that says this feature was modeled
identical to Unix, Vista still does not support true symlinks. Their
current implementation suffers from:
- being limited to a max of 31 symlinks per directory.
- relative symlinks cannot cross volumes.
- mklink forces you to distinguish between a file or directory.
- other pre-vista windows versions on a network cannot see the
symlinks (unlike Samba).
- NTFS only, not available on FAT.

2.If not, how do I detect the host platform so I can call Vista's own
mklink instead?


RUBY_PLATFORM =~ /win/

further check on OS version requires platform specific code or
checking the version of cmd.exe or similar. Sys::Admin may give you a
more friendly way to do this.

.



Relevant Pages

  • Re: FileUtils.ln_s in Vista
    ... Vista still does not support true symlinks. ... current implementation suffers from: ...
    (comp.lang.ruby)
  • Re: FileUtils.ln_s in Vista
    ... Vista still does not support true symlinks. ... current implementation suffers from: ... - mklink forces you to distinguish between a file or directory. ...
    (comp.lang.ruby)