> From: "Katz, Dan" <dpk...@arc.baincapital.com> > Date: Tue, 3 Jan 2012 16:49:53 +0000 > > But if I then move the point to the entry for the "gnu" folder and hit <RET> > or run dired-find-file directly, I get a permission error: > =================================================================================== > Debugger entered--Lisp error: (file-error "Removing old name" "permission > denied" "c:/Users/dpkatz/tmp/ange-ftp2644_Lx") > signal(file-error ("Removing old name" "permission denied" > "c:/Users/dpkatz/tmp/ange-ftp2644_Lx")) > byte-code([...bunch of control codes...] [completion localname operation > filename err zerop (file-exists-p file-directory-p) t (expand-file-name > file-name-as-directory) signal] 3) > tramp-file-name-handler(file-exists-p > "/ftp:anonym...@ftp.gnu.org:/gnu/.dired") > file-exists-p(".dired") > dired-hack-local-variables() > dired-extra-startup() > run-hooks(change-major-mode-after-body-hook dired-mode-hook) > apply(run-hooks (change-major-mode-after-body-hook dired-mode-hook)) > run-mode-hooks(dired-mode-hook) > dired-mode("/ftp:anonym...@ftp.gnu.org:/gnu/" "-al") > dired-internal-noselect("/ftp:anonym...@ftp.gnu.org:/gnu/" nil) > dired-noselect("/ftp:anonym...@ftp.gnu.org:/gnu") > run-hook-with-args-until-success(dired-noselect > "/ftp:anonym...@ftp.gnu.org:/gnu") > find-file-noselect("/ftp:anonym...@ftp.gnu.org:/gnu" nil nil nil) > find-file("/ftp:anonym...@ftp.gnu.org:/gnu") > dired-find-file() > call-interactively(dired-find-file t nil) > execute-extended-command(nil) > call-interactively(execute-extended-command nil nil) > =================================================================================== > This is also reliable, in the sense that I will get this error every time. > Note that the contents of the temp file being deleted seem perfectly > reasonable (i.e. they look like the correct and complete dired listing for > the "gnu" folder). Also note that if I navigate over to the temp directory > manually, I absolutely CAN delete the file in question via dired. > > But not every subfolder causes problems - e.g. trying to dired-find-file on > the "mirrors" folder works fine: > =================================================================================== > /ftp:anonym...@ftp.gnu.org:/mirrors: > drwxr-xr-x 3 0 0 4096 Apr 20 2005 . > drwxr-xr-x 10 0 0 4096 Sep 27 21:03 .. > dr-xrwxr-x 2 3003 3003 4096 Oct 05 15:13 dynebolic > ===================================================================================
If you invoke file-attributes one the file that gets "permission denied", what do you see? That is, type M-: (file-attributes "c:/Users/dpkatz/tmp/ange-ftp2644_Lx" 'string) RET what does Emacs show as result? (Replace the name of the temporary file with the one that is actually shown in the backtrace.)