Description

Additional methods for the File class on MS Windows. Plus, several existing
methods have been redefined to make them work properly on MS Windows.

Prerequisites

* windows-pr
* win32-file-stat

Installation

gem install win32-file

Synopsis

require 'win32/file'
p File.hidden?(somefile)
p File.attributes(somefile)
File.open(somefile){ |fh|
  fh.hidden = true
}

Singleton Methods Added

* File.attributes
* File.archive?
* File.compressed?
* File.decrypt
* File.encrypt
* File.encrypted?
* File.get_permissions
* File.hidden?
* File.indexed?
* File.longpath
* File.normal?
* File.offline?
* File.readonly?
* File.remove_attributes
* File.reparse_point?
* File.securities
* File.set_attributes
* File.set_permissions
* File.shortpath
* File.sparse?
* File.system?
* File.temporary?

Instance Methods Added

* File#archive=
* File#compressed=
* File#hidden=
* File#indexed=
* File#normal=
* File#offline=
* File#readonly=
* File#sparse=
* File#system=
* File#temporary=

Singleton Methods Redefined

* File.basename   # UNC path issues
* File.blksize    # Not implemented in MRI
* File.blockdev?  # Not implemented in MRI
* File.chardev?   # Not implemented in MRI
* File.directory? # Wide character string handling
* File.dirname    # UNC path issues
* File.lstat      # Not implemented in MRI
* File.readlink   # Not implemented in MRI
* File.size       # 2GB limitation
* File.split      # UNC path issues
* File.stat       # Uses object returned by win32-file-stat
* File.symlink    # Not implemented in MRI
* File.symlink?   # Not implemented in MRI

Known issues or bugs

None that I'm aware of.
Please report any issues you find on the github page at:
https://github.com/djberg96/win32-file/issues
Or the Win32Utils project page at:
http://www.rubyforge.org/projects/win32utils.

License

Artistic 2.0
(C) 2003-2012, Daniel J. Berger, All Rights Reserved

Warranty

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.

Authors

* Daniel J. Berger
* Park Heesob