tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp-cache and destructive operations


From: Michael Albinus
Subject: Re: tramp-cache and destructive operations
Date: Thu, 13 Aug 2015 13:26:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Jürgen Hötzel <address@hidden> writes:

> Hi Michael,

Hi Jürgen,

> Makes sense. I wasn't aware of possible side effects when implementing
> `tramp-adb-handle-directory-files-and-attributes' back in 2011. 

I've checked the code further. The cached value of
`tramp-adb-handle-directory-files-and-attributes' becomes invalid, when
one of the files in the directory changes its attributes. Consequently,
you must also flush the file properties of the directory, if you call
`tramp-adb-handle-set-file-modes' or `tramp-adb-handle-set-file-times'.

Ah, and for systematic reasons, the cache key in
`tramp-adb-handle-directory-files-and-attributes' shall be
"directory-files-and-attributes-%s-%s-%s-%s".

> Jürgen

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]