On Sat, 2008-03-01 at 13:40 +0100, Erik wrote:
> Is it possible to set a property on a file and have it remove
> automatically when the file is modified?
>
> Suppose that we have a style checker that checks a lot of source code
> files. Once it examined a file and found it to be clean, it should set a
> property on the file ("style-clean"). Whenever the style checker is
> executed it skips files with this property. Whenever the file is
> modified, the filesystem removes the property.
>
> Is this possible? Which filesystems does it work on?Looks like you are looking for extended attributes: http://en.wikipedia.org/wiki/Extended_attributes But I don't think you can make them "disappear" by modifying a file. Inotify might be a solution for that problem: http://en.wikipedia.org/wiki/Inotify Alternatively you could check the file modification times as stored by default on every FS. You could use "find" for that or "ls --full-time".
signature.asc
Description: This is a digitally signed message part

