GNU bug report logs - #29070
26.0.90; (file-attributes dir) => nil, even though (and (file-exists-p dir) (file-directory-p dir)) => t

Previous Next

Package: emacs;

Reported by: rrandresf <at> gmail.com

Date: Mon, 30 Oct 2017 20:03:01 UTC

Severity: normal

Found in version 26.0.90

Done: Andreas Schwab <schwab <at> linux-m68k.org>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 29070 <at> debbugs.gnu.org (full text, mbox):

From: andrés ramírez <rrandresf <at> gmail.com>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: 29070 <at> debbugs.gnu.org
Subject: Re: bug#29070: 26.0.90; emacs-26.0.90 pretest
Date: Mon, 30 Oct 2017 19:59:37 -0600
Hi Noam.
> Hmm, doesn't make sense that it could be disappearing in the middle and
> still have other stuff inside.  So that suggests that something is wrong
> with the file-attributes function.  Does (file-attributes
> "/tmp/emacs1000") consistently give you nil if you evaluate it multiple
> times?  What about (file-exists-p "/tmp/emacs1000")?  (file-directory-p
> "/tmp/emacs1000")?

Yes. Consistently gave me 'nil'. I have evaluated more than 20 times
--8<---------------cut here---------------start------------->8---
Welcome to the Emacs shell

~/abs/emacs-26.0.90/build-arm $ (file-attributes "/tmp/emacs1000")
~/abs/emacs-26.0.90/build-arm $ (file-attributes "/tmp/emacs1000")
~/abs/emacs-26.0.90/build-arm $ (file-exists-p "/tmp/emacs1000")
t
~/abs/emacs-26.0.90/build-arm $ (file-exists-p "/tmp/emacs1000")
t
~/abs/emacs-26.0.90/build-arm $ (file-directory-p "/tmp/emacs1000")
t
~/abs/emacs-26.0.90/build-arm $ (file-directory-p "/tmp/emacs1000")
t
~/abs/emacs-26.0.90/build-arm $ (pp (file-attributes "/tmp/emacs1000"))
nil
~/abs/emacs-26.0.90/build-arm $
--8<---------------cut here---------------end--------------->8---




This bug report was last modified 7 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.