# File.symlink

**URL:** <https://www.ruby-forum.com/t/file-symlink/182604>\
**Category:** IronRuby\
**Created:** [January 30, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/file-symlink/182604 "2010-01-30T21:40:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@ryan](https://www.ruby-forum.com/u/ryan)\
**Post date:** [January 30, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/file-symlink/182604/1 "2010-01-30T21:40:56Z")

</div>

While working with Ivan on the amp project, I came across a windows  
error  
when trying to create symlinks using File.symlink. This is  
well-documented[http://www.ruby-doc.org/core/classes/File.html#M002533](http://www.ruby-doc.org/core/classes/File.html#M002533)and  
has a  
few [http://rubyforge.org/docman/view.php/85/1697/Dir.html](http://rubyforge.org/docman/view.php/85/1697/Dir.html)  
fixes[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246292](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246292),  
but nothing realistic. The Windows-only implementation of Ruby, wuby,  
uses  
the mklink in Vista and Win7 to create symlinks. While this isn’t  
necessarily a consideration for IronRuby, I was wondering if any of you  
have  
come across a decent solution to this problem.

Thanks,

Ryan R.

Email: removed\_email\_address@domain.invalid  
LinkedIn: [http://www.linkedin.com/in/ryanriley](http://www.linkedin.com/in/ryanriley)  
Blog: [http://wizardsofsmart.net/](http://wizardsofsmart.net/)  
Twitter: @panesofglass  
Website: [http://panesofglass.org/](http://panesofglass.org/)

---

<div class="post-metadata">

**Author:** ![ryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@ryan](https://www.ruby-forum.com/u/ryan)\
**Post date:** [January 30, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/file-symlink/182604/2 "2010-01-30T23:22:10Z")

</div>

Wasnâ€™t Wuby an April Foolâ€™s joke?

I would love to see us support Junctions and links down the road, but I  
donâ€™t see that happening until post 1.0.

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ryan R.  
Sent: Saturday, January 30, 2010 12:40 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] File.symlink

While working with Ivan on the amp project, I came across a windows  
error when trying to create symlinks using File.symlink. This is  
well-documented[http://www.ruby-doc.org/core/classes/File.html#M002533](http://www.ruby-doc.org/core/classes/File.html#M002533)  
and has a few[http://rubyforge.org/docman/view.php/85/1697/Dir.html](http://rubyforge.org/docman/view.php/85/1697/Dir.html)  
fixes[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246292](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246292),  
but nothing realistic. The Windows-only implementation of Ruby, wuby,  
uses the mklink in Vista and Win7 to create symlinks. While this isn’t  
necessarily a consideration for IronRuby, I was wondering if any of you  
have come across a decent solution to this problem.

Thanks,

Ryan R.

Email: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
LinkedIn: [http://www.linkedin.com/in/ryanriley](http://www.linkedin.com/in/ryanriley)  
Blog: [http://wizardsofsmart.net/](http://wizardsofsmart.net/)  
Twitter: @panesofglass  
Website: [http://panesofglass.org/](http://panesofglass.org/)

---

<div class="post-metadata">

**Author:** ![ryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@ryan](https://www.ruby-forum.com/u/ryan)\
**Post date:** [January 30, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/file-symlink/182604/3 "2010-01-30T23:26:51Z")

</div>

Note, that when I say this, I mean it as me, not as some official word  
from the team 😉

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Jim D.  
Sent: Saturday, January 30, 2010 2:19 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] File.symlink

Wasnâ€™t Wuby an April Foolâ€™s joke?

I would love to see us support Junctions and links down the road, but I  
donâ€™t see that happening until post 1.0.

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ryan R.  
Sent: Saturday, January 30, 2010 12:40 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] File.symlink

While working with Ivan on the amp project, I came across a windows  
error when trying to create symlinks using File.symlink. This is  
well-documented[http://www.ruby-doc.org/core/classes/File.html#M002533](http://www.ruby-doc.org/core/classes/File.html#M002533)  
and has a few[http://rubyforge.org/docman/view.php/85/1697/Dir.html](http://rubyforge.org/docman/view.php/85/1697/Dir.html)  
fixes[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246292](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/246292),  
but nothing realistic. The Windows-only implementation of Ruby, wuby,  
uses the mklink in Vista and Win7 to create symlinks. While this isn’t  
necessarily a consideration for IronRuby, I was wondering if any of you  
have come across a decent solution to this problem.

Thanks,

Ryan R.

Email: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
LinkedIn: [http://www.linkedin.com/in/ryanriley](http://www.linkedin.com/in/ryanriley)  
Blog: [http://wizardsofsmart.net/](http://wizardsofsmart.net/)  
Twitter: @panesofglass  
Website: [http://panesofglass.org/](http://panesofglass.org/)

---

<div class="post-metadata">

**Author:** ![ryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@ryan](https://www.ruby-forum.com/u/ryan)\
**Post date:** [January 30, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/file-symlink/182604/4 "2010-01-30T23:39:09Z")

</div>

Yes, I found the link at the bottom to the definition of gullible. Hmm  
…  
maybe not gullible, but certainly not journalistic material. 🙂 At the  
moment, I found a work-around, but I’d be interested into looking into  
this  
further down the road.

Thanks,

Ryan R.

Email: removed\_email\_address@domain.invalid  
LinkedIn: [http://www.linkedin.com/in/ryanriley](http://www.linkedin.com/in/ryanriley)  
Blog: [http://wizardsofsmart.net/](http://wizardsofsmart.net/)  
Twitter: @panesofglass  
Website: [http://panesofglass.org/](http://panesofglass.org/)
