Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 68cc30dd1d546a1c7091c469d7280ce7a6bae5a1
Ticket: 1043129fffffffffffffffffffffffffffffffff
file isdirectory (or join ?) bug
User & Date: dem on 2004-10-08 15:32:46
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi,
    
    I have a problem with file isdirectory command (Windows
    2000 Professionnal,
    not tested on other platforms) and I believe this is a
    bug :
    bug reported with ActiveTcl 8.4.6.1, 8.4.7.0, 8.5.0.0b2
    there is no bug with an old 8.3 (I don't know if it's
    an ActiveState
    package...)
    
    The bug ===>
    
    set p "C:\\toto"
    puts [file join $p toto]
    puts [file isdirectory $p]
    puts [file join $p toto]
    
    ==> output :
    C:/toto/toto
    0
    C:\toto/toto
    
    same result if the directory exists except 0 => 1
    
    There aren't any reasons the 2 file join give different
    results...
    
    Thanks in advance for explanations and bug fix,
    
    Julien
    
    PS: for the moment in our application I'll make a copy
    of the filename
    before call file isdirectory... :
    file isdirectory $f
    'll be changed to
    set tmp ""
    append tmp "$f"
    file isdirectory $tmp
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dem"
  9. subsystem changed to: "37. File System"
  10. title changed to: "file isdirectory (or join ?) bug"
  11. type changed to: "Bug"