Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d5c149fd1e21afedc14999c047e4ce58f1b21b76f37ab300d9707ff162e9dfdd
Ticket: 3eace1b21f66da738cd1769e4ec69cb0f50e6029
'glob -dir $path *' doesn't work for deeply nested paths
User & Date: anonymous on 2023-08-18 13:19:18
Changes

  1. icomment:
    On windows - you can get deeper down a hierarchy using Twapi find_file_open and find_file_next.
    Note that here too - if NTFS long paths haven't been enabled - the //?/ or //./ syntax won't help (probably it doesn't support globs anyway)
    
    The trick with twapi is to use the 'shortname' property of the whole path.
    This can be retrieved using the -detail full option with Twapi, or file attributes in Tcl.
    
    This suggests that it should be possible to enhance Tcl's glob, cd etc commands to automatically use the shortname under the hood - but still display the longname.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"