Torsten Anders wrote:
Dear all,
I just played around with the Oz path extension
(http://www.mozart-oz.org/documentation/mozart-stdlib/os/path.html) and
came across some weirdness: it appears every path must end in a slash.
For example,
{Path. isFile '/Users/t/.ozrc/'}
returns true whereas
{Path. isFile '/Users/t/.ozrc'}
results in an error.
I got a different behaviour. isFile and isDir return true or false if
the file/directory exist, and it doesn't matter if a put a / or not at
the end. Which I believe is wrong for files.
{Path.isFile '/home/user/.emacs'} => true
{Path.isFile '/home/user/.oz/'} => false
But I got an error when the input is not a file or a directory
{Path.isFile '/home/user/.emak'} => error
I assume this is a bug.
I think so too.. I guess you are running MacOSX. Can you submit a bug
report?
cheers
Boriss
Best,
Torsten
--
Torsten Anders
Sonic Arts Research Centre • Queen's University Belfast
Frankstr. 49 • D-50996 Köln
Tel: +49-221-3980750
www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users