On Sat, 5 Nov 2016 18:05:02 -0400, David Storrs
<[email protected]> wrote:
>I've got this little snip of code:
>
>
>(define p "/tmp/foo/bar-28")
>(file-exists? p) ; #t
>(delete-file p)
>(file-exists? p) ; still #t ??
>
>
>I've verified that:
>
>*) It's not throwing an exception
>*) The code is running as me
>*) The /tmp directory is 777 [I'm on OSX 10.11]
>*) The file itself is 666, although that shouldn't matter
>*) The file is owned by me
What about the "foo" directory?
>*) p is a string
>*) p points to the correct file
>*) There are no leading or trailing whitespace characters
>*) If I run this code from inside a command-line Racket REPL, it works fine
>and the file is deleted
>*) If I replace (delete-file) with (system @~a{rm -f @p}) it works fine
Do you need to use -f(orce)?
>I thought maybe there was something weird about the /tmp directory, so I
>tried putting the target in a different directory
>(/Users/dstorrs/tmp/foo/bar-28) but that made no difference.
I don't use OSX, but I have encountered various permission related
issues using the /tmp directory on some Linuxes: group affiliations
not being honored, objects created by one sudo user not accessible by
a different sudo user, etc. Wierd stuff.
>I've tried googling on the general net and in the mailing list archives and
>found nothing. I am utterly flummoxed here; can anyone suggest anything?
George
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.