Help regarding vfs
- From: Alan Folsom <folsom@xxxxxxxxxxxxxxx>
- Date: 24 Oct 2006 14:05:48 GMT
I am running into a problem with VFS that has me
stymied.
If I run the following script on Mac OS X 10.4
(Tcl release 8.4.10) using a PowerPC mac.
The script is unable to read it's own vfs. Copies
to the mounted vfs succeed (I can unwrap them and
see the files) But the script is not able to read
the vfs it itself created. Unix permissions all
seen normal.
If I try to directly open a preexistent vfs I get
the same problem, it can find no files in it, even
though the file exists and was created by a previous
execution of the same script.
---
package require vfs::mk4
console show
vfs::mk4::Mount lib.vfs /tmp
foreach fl [glob -nocomplain P*.*] {
puts stdout "copying $fl to \/tmp\/[file tail $fl]"
file copy -force $fl /tmp/[file tail $fl]
}
foreach fl [glob /tmp/*.*] {
puts stdout "found $fl"
}
vfs::filesystem unmount /tmp
::vfs::mk4::Mount lib.vfs /tmp
puts stdout "remounting"
foreach fl [glob /tmp/*.*] {
puts stdout "found $fl"
}
vfs::filesystem unmount /tm
---
The log file shows the copies, but crashes on the
second glob, having found no files. If I take the first
two loops out and just try to open and glob a preexistent
lib.vfs, I get the same crash.
Any suggestions on what may be going wrong here?
Thanks,
Al
--
--------------------------------------------------
Alan L. Folsom, Jr. alan@xxxxxxxxxxx
--------------------------------------------------
.
- Follow-Ups:
- Re: Help regarding vfs
- From: Alan Folsom
- Re: Help regarding vfs
- Prev by Date: Re: Thoughts about the controversial {expand} feature
- Next by Date: Re: widget updating issue / NEW QUESTION
- Previous by thread: TCL memory allocation model
- Next by thread: Re: Help regarding vfs
- Index(es):
Relevant Pages
|