[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Use of remove to clean up may not work all the time
From: |
vtailor |
Subject: |
lynx-dev Use of remove to clean up may not work all the time |
Date: |
Sat, 13 Nov 1999 16:24:36 -0600 (CST) |
If you wonder why temporary viewer files don't get erased by lynx under
Windows, it is probably because the implementation of "remove()" requires
a directory path along with the file name. HTSYS_remove() calls remove()
with only the file name. Since lynx.exe is usually in some other non-
Unix directory under Windows, remove tries to erase the named file in
the lynx.exe directory, where it does not exist.
Somewhere in LYClean.c and LYUtils.c, the getenv() function needs to
be called to find the value of TEMP, which is the directory prefix
for remove. Alternatively, a temporary cd to TEMP while remove() is
called.