Path v0.3.0 
Author Message
 Path v0.3.0


I've just released the version 0.3.0 of the Path class.

Home page: http://www.*-*-*.com/
Download: http://www.*-*-*.com/
RAA entry: http://www.*-*-*.com/

This class regroups all builtin Ruby methods related to path names,
like File::exist?, File::open, Dir::entries, File::Stat#readable?, etc.

ChangeLog since 0.2.0:
- Minor bugfixes and improvements
- Updated join: ensure no path separator is duplicated (see test unit or
- Documentation!
- Changed mkdir, rmdir and delete to take optional arguments: the
entry/ies to affect
  in the directory. ie: Path['foo'].mkdir('bar') will create the
directory 'foo/bar'.
- Some tests added
- Added line number in evals
- new #rmtree method
- changed #foreach to yield entries containing the calling path

TODO (probably in next release):
- Path#relative to retreive the relative path between 2 paths
  ruby-talk:20581, ruby-talk:20666
- A #delete! method, similar to #rmtree except it does nothing if
  the path doesn't exist
- Change #copy, #link, #rename, ... to accept an entry name like #mkdir

Any feedback is welcome.


Wed, 21 Apr 2004 13:11:56 GMT  
 [ 1 post ] 

 Relevant Pages 

1. REPOST: Re: import path, script path (was Re: module path)

2. NQXML v0.5.1 fixes v0.5.0 bug

3. can't compile : v0.5.21 vs v0.5.24

4. C4 PATH() returns WRONG PATH in Win95!

5. Making file path control only select directory paths not file names

6. how do I set path or add path

7. how to translate a virtual path to a physical path in a CGI script

8. module path and $PATH interaction?

9. os.path.split() with DOS path names

10. Convert between Windows style paths and POSIX style paths

11. parser API style - methods take path or file vs sep methods for path and file

12. adding new paths to sys.path


Powered by phpBB® Forum Software