Path: | README |
Last Update: | Fri Dec 14 11:49:44 -0300 2007 |
Extra or redefined methods for the File class on MS Windows.
rake test (optional) rake install (standard) or rake install_gem (rubygems)
require 'win32/file' p File.hidden?(somefile) p File.attributes(somefile) File.open(somefile){ |fh| fh.hidden = true }
For all the unit tests to pass, the ‘sometestfile.txt’ file must have the ‘archive’ and ‘readonly’ attributes set. Although I have them set on the file when I create the zip archive, it seems that file attributes aren‘t guaranteed to survive the process.
So, please change the file attributes manually if needed before running the test suite. You can do this by right-clicking on the file in Explorer and selecting ‘properties’. The readonly attribute check-box is at the bottom left corner. To get to the archive attribute click on the ‘Advanced’ tab. You should see a checkbox at the top.
None that I‘m aware of. Please report any bugs you find on the project page at www.rubyforge.org/projects/win32utils.
Ruby‘s
This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.