Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created January 29, 2011 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luislavena/802121 to your computer and use it in GitHub Desktop.
Save luislavena/802121 to your computer and use it in GitHub Desktop.
>ruby --disable-gems -I. -S irb
File.realpath('foo.rb')
## API
FindFirstFileW ( "C:\Users", 0x0028c698 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\Users\Luis", 0x0028c698 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\Users\Luis\Projects", 0x0028c688 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\Users\Luis\Projects\oss", 0x0028c678 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\Users\Luis\Projects\oss\oci", 0x0028c678 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\Users\Luis\Projects\oss\oci\rubyinstaller", 0x0028c658 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox", 0x0028c648 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox\foo.rb", 0x0028c638 )
FindClose ( 0x004d7630 )
File.realpath('C:/BarLink/foo.rb')
## API
FindFirstFileW ( "C:\BarLink", 0x0028c698 )
FindClose ( 0x004d7630 )
FindFirstFileW ( "C:\BarLink\foo.rb", 0x0028c688 )
FindClose ( 0x004d7630 )
>dir C:\
29/01/2011 04:07 p.m. <SYMLINKD> BarLink [C:\Users\Luis\Projects\oss\oci\rubyinstaller\sandbox]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment