Re: [Nautilus-list] Thumbnail managing draft

On Tue, Jul 10, 2001 at 11:36:20AM -0500, Ryan Muldoon wrote:
> I like the idea of setting the mtime and file permissions to be the same as
> the original image.  I would probably just have equality checking do
> 	if (thumb.mtime != orig.mtime)
> 		generate_thumbnail(orig);
> rather than
> 	if (thumb.mtime < orig.mtime)
> 		generate_thumbnail(orig);
> because all you really care about is that they are in sync with each other.
> So if they aren't, fix it.

There may be cases when its not possible to set the mtime of a file - HTTP
for example. I think the using < is better than using !=


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