I know that you can find files in a path and sub directories modified in the past week with:

find -L /somepath -mtime -5 -type f

I could assign that to a job and have it run every night to create symlinks to those files in a particular folder using -exec ... That's not the purpose of my question though.

I'd like to know if it's possible to "emulate" a disk/folder and make a file mountable (like a smart ISO?) that would return a list of those files automatically, or if this application has already been done? (I've been looking, but not finding it.)

link|improve this question
You can (rather easily, I am told) implement a minimal filesystem using FUSE yourself. You should be familiar with C though. – Daniel Beck Nov 1 '11 at 16:14
@Daniel Beck - I'd have some serious brush up to do on my C to do that I think. (I haven't done C in years...) If no answers come in I may have to look into this. Thanks. – Andir Nov 1 '11 at 16:21
feedback

1 Answer

up vote 1 down vote accepted

Another approach besides FUSE is to create a small program (again using C or maybe Google Go) which is using inotify system calls to monitor the filesystem, filters relevant events and keeps tmpfs filesystem full of symlinks in actual state.

link|improve this answer
Selected your answer as the correct one. I did not find a way to do this so I reverted to a cron job to create symlinks every couple hours in a specific folder. – Andir Dec 15 '11 at 19:07
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.