| Path: | README |
| Last Update: | Sat Nov 25 14:57:21 -0700 2006 |
Extra or redefined methods for the File class on MS Windows.
ruby test/ts_all.rb # optional ruby install.rb
ruby win32-file.gemspec gem install win32-file-X.Y.Z.gem (Or, just 'gem install win32-file' if installing remotely)
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.