octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

isir should return a logical value


From: David Bateman
Subject: isir should return a logical value
Date: Mon, 03 Sep 2007 16:37:46 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

The function isdir should return a logical value.. Trivial patch attached..

D.

-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

*** ./scripts/general/isdir.m.orig19    2006-05-17 23:00:54.000000000 +0200
--- ./scripts/general/isdir.m   2007-09-03 16:35:25.550778492 +0200
***************
*** 24,30 ****
  
  function t = isdir (x)
    if (nargin == 1)
!     t = exist (x, "dir");
    else
      print_usage ("isdir");
    endif
--- 24,30 ----
  
  function t = isdir (x)
    if (nargin == 1)
!     t = exist (x, "dir") > 0;
    else
      print_usage ("isdir");
    endif

reply via email to

[Prev in Thread] Current Thread [Next in Thread]