[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] win32-file 0.1.0

Daniel Berger

10/30/2003 5:40:00 AM

Hi all,

I am happy to announce the release of win32-file
0.1.0. This package provides additional methods for
the File class specific to the Win32 platform, mostly
related to file/directory attribute information.

Synopsis
========
require "win32/file"

some_file = "C:\\Documents and
Settings\\some_user\\fruitylicious.txt"

Win32::File.attributes(some_file) # e.g.
['hidden','archive']
Win32::File.short_path(some_file) # "fruity~1.txt"

Win32::File.hidden?(some_file) # true or false
Win32::File.archive?(some_file) # true or false
...

There are no methods for file security yet. A
File::Security subclass will be added in a future
release.

For more information please visit
http://rubyforge.org/projects/w.... Also
available on the RAA.

Enjoy!

Dan

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/brit...

1 Answer

Gavin Sinclair

10/30/2003 6:21:00 AM

0

> Hi all,
>
> I am happy to announce the release of win32-file
> 0.1.0. This package provides additional methods for
> the File class specific to the Win32 platform, mostly
> related to file/directory attribute information.

Good work.

> Synopsis
> ========
> require "win32/file"
>
> some_file = "C:\\Documents and
> Settings\\some_user\\fruitylicious.txt"
>
> Win32::File.attributes(some_file) # e.g. ['hidden','archive']

Why not use symbols instead?

> Win32::File.short_path(some_file) # "fruity~1.txt"

*shudder* :)

> [...]

Cheers,
Gavin