directory: added "mtime" property

Remember the modification time of each directory.  This is important
for archives (which are virtual directories right now), but may also
be useful for an automatic update mechanism.
This commit is contained in:
Max Kellermann
2009-02-28 14:02:00 +01:00
parent 3d6e6416e5
commit 2aebbf8460
3 changed files with 17 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ struct directory {
struct dirvec children;
struct songvec songs;
struct directory *parent;
time_t mtime;
ino_t inode;
dev_t device;
unsigned stat; /* not needed if ino_t == dev_t == 0 is impossible */