Version 2 of tclVFS Hints and Tricks

Updated 2004-10-29 03:30:42 by CMCc

New (Feb 20 2003), tclvfs now contains a nice debugging feature for those writing tclvfs implementations:

    vfs::filesystem internalerror report
    proc report {} { puts stderr $::errorInfo }

will do wonders! Tcl implementations are now not allowed to throw Tcl errors, only Tcl ok or posix errors.


LV When using a Starkit, one accesses files within the starkit via TclVFS. Please list here some of the differences one will see when accessing files via TclVFS rather than accessing them via a normal file system.

For instance, file ownership and permissions are not supported within many (most? all?) the VFS modules.

A user reports on comp.lang.tcl that when accessing files via VFS on Windows, the file names are case sensitive.

Vince adds that each filesystem module can choose whether to be case-sensitive or not. Most are, I believe, implemented in a case sensitive fashion. I'd be interested to know how, say vfs::ftp works when the relevant ftp site is running on a windows server (not case sensitive)...


In a recent web search I noticed some misinformation about 'load foo.dll' not working inside a .zip, and how it can't possibly work and is impossible and .... Tclvfs is designed to allow this to work just fine, and will transparently copy the .dll to the native temporary directory and load it there (and arrange for it to be deleted on exit). If any of this doesn't work it is a bug and should be reported!