[Win32utils-devel] File.readlink for Vista?
djberg96 at gmail.com
Wed Nov 12 20:52:23 EST 2008
Heesob Park wrote:
> 2008/11/12 Daniel Berger <djberg96 at gmail.com>:
>> I've implemented File.symlink and File.symlink? in the win32-file library,
>> but I'm not sure how to implement File.readlink. I searched Google for a
>> while but found nothing.
>> Any suggestions?
> Here is File.readlink implementation
> def readlink(file)
> hFile = CreateFile(file,
> path = 0.chr * 256
> path.strip[4..-1] # get rid of prepending "\\?\"
> Park Heesob
Excellent, thank you!
I've committed to CVS.
More information about the win32utils-devel