Re: ange-ftp-get-files is not updating his cache
Michael Albinus <michael.albinus <at> gmx.de>
2012-07-11 19:05:59 GMT
Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
> Hi Michael,
>> I've committed a patch to Emacs' trunk. Finally, it was just one place I
>> had to adjust the cache, the copy case. Removing a file shall work
>> already w/o cache problems.
>> Could you, please, test?
> Yes it is working,
> however I think it is also a workaround, what when the ftp directory
> is modified from someone with another Emacs or some external program?
> The hash table will not be updated and the command
> `ange-ftp-reread-dir' doesn't help because it is broken (It is not
> aware of user, password etc...). I think it is non sense to cache the
> ls result in a hash-table, of course it is faster, but the contents of
> a directory (ftp or not) is meant to be always changed. Imagine how
> unuseful would be an implementation of `directory-files' with caching
> result in a hash-table and refering to this table at each further
I haven't added caches to ange-ftp, but I believe they have their
reason. On slow lines, they could make the life easier.
Stale caches bite, of course. But how often does this happen? IIRC, an