Displaying 3 results from an estimated 3 matches for "get_file_act".
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all,
I decided to check the responsiveness of the pure Ruby vs C extension
versions of win32-changenotify. I setup this little file generator program:
a = []
10.times{ |n|
a << Thread.new{
File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" }
}
}
a.each{ |t| t.join }
The pure Ruby version did not do so well. In some cases it
2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
...pportunity to test passing a custom
Win32::Event object.
I''m mostly done I think, but I''m having trouble unraveling the
FILE_NOTIFY_INFORMATION struct buffer. Please check out the latest
lib/win32/changenotify.rb from CVS and take a look at both the custom
wait method and the get_file_action private method.
The notification is clearly getting picked up, but I''m just not
unraveling the struct properly.
Here''s a little sample program you can use to test:
require ''win32/changenotify''
include Win32
filter = ChangeNotify::FILE_NAME | ChangeNotify:...
2005 Dec 21
9
question about changejournal
Hi,
I''ve got a newbie question--sorry if this is covered elsewhere, I parsed
through the archives for awhile and didn''t see it.
I''d like to listen for whenever a file is renamed (e.g. foo.txt -> foo.old)
and then magically change it back. This sounds odd, but I''m working with a
stubborn application and this will actually make things work nice.
So, if I do: