<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
         <tr>
                <th>Reporter</th>
            <td>sgougeon@free.fr</td>
         </tr>
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - isdir("w:") returns %t even when the drive w: does not exist (5.0 regression)"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15484">15484</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>isdir("w:") returns %t even when the drive w: does not exist (5.0 regression)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Scilab software
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0 through 5.3.x
          </td>
        </tr>


        <tr>
          <th>OS</th>
          <td>All Windows
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Medium
          </td>
        </tr>


        <tr>
          <th>Component</th>
          <td>Input / output
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>bugzilla.admin@scilab.org
          </td>
        </tr>
</table>
      <p>
        <div>
        <pre>BUG DESCRIPTION:
----------------
I was running fileio tests and see that bug_2181 does not pass.
Investigating why, i have found that since Scilab 5.1 (and likely 5.0),
isdir("w:") (or any other drive unique letter) returns %T even when w:\
does not actually exist!
The short description of isdir() was ambiguous until
<a href="https://codereview.scilab.org/#/c/19641/31/scilab/modules/fileio/help/en_US/directory/isdir.xml">https://codereview.scilab.org/#/c/19641/31/scilab/modules/fileio/help/en_US/directory/isdir.xml</a>

The problem with the other possible meaning -- the argument has a dir-like syntax,
whether it actually exists or not -- is that 
a) it is not the one used in the above test
b) it was not how it used to work with Scilab 4.1.2

The problem with the current 5.x and 6.0.1 meaning is that
while isdir("w:") returns %t since the syntax is correct, then
isdir("w:\idonotexist") should return %T as well (since the syntax is correct as well),
while it does not: %f is returned.

This is why
a) fixing the documentation was really mandatory
and now
b) fixing isdir(w:) is so as well, to return %T only if W: actually exists.


ERROR LOG:
----------
None. Wrong answer

HOW TO REPRODUCE THE BUG:
-------------------------
~isdir("w:") // provided that you don't have any w: drive


OTHER INFORMATION:
------------------
Tested with 4.1.2, 5.1.0 and 6.0.1 on Win7 64 bits</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>