Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bd9d68bb2c841e0e800d04d6e9667556170f0180
Ticket: 2974459fffffffffffffffffffffffffffffffff
file readable reports Windows off-line files as unreadable
User & Date: dkf on 2013-09-24 22:05:05
Changes

  1. assignee changed to: "aku"
  2. closedate changed to: "2456560.42020468"
  3. closer changed to: "dkf"
  4. comment changed to:
    The file readable command correctly reports files on Windows (XP Professional 2002/SP2) mapped drives as readable when reading is possible:
    
    % file exists r:\mydirectory\test.txt
    1
    % file readable r:\mydirectory\test.txt
    1
    % set chid [open r:\mydirectory\test.txt]
    filef0ca80
    % set contents [read $chid]
    record 1 of 2 of test file test.txt
    record 2 of 2 of test file test.txt
    % close $chid
    
    
    However, if the file is now made off-line, effectively making a local copy, and the connection to the mapped drive removed, the (local) file still exists and is readable but file readable reports it is not (0):
    
    % file exists r:\mydirectory\test.txt
    1
    % file readable r:\mydirectory\test.txt
    0<-- incorrect response
    % set chid [open r:\mydirectory\test.txt]
    fileefd600
    % set contents [read $chid]
    record 1 of 2 of test file test.txt
    record 2 of 2 of test file test.txt
    % close $chid
    
  5. login: "dkf"
  6. mimetype: "text/plain"
  7. severity changed to: "Minor"
  8. status changed to: "Closed"