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
* win32-file-stat
Installation
gem install win32-file
Synopsis
require 'win32/file'
p File.long_path("C:/Progra~1")
p File.short_path("C:/Program Files")
Singleton Methods Added
* File.long_path
* File.short_path
Singleton Methods Redefined
* File.basename
* File.blksize
* File.blockdev?
* File.chardev?
* File.directory?
* File.dirname
* File.executable?
* File.file?
* File.ftype
* File.join
* File.grpowned?
* File.lstat
* File.owned?
* File.pipe?
* File.readable?
* File.realpath
* File.realdirpath
* File.socket?
* File.readlink
* File.split
* File.stat
* File.symlink
* File.symlink?
* File.writable?
* File.world_writable?
Known issues or bugs
The File.exist? method will return true on stale symlinks.
Please report any other issues you find on the github page at:
https://github.com/djberg96/win32-file/issues
License
Artistic 2.0
Copyright
(C) 2003-2015, 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