Is there a way to restrict a directory to have only 1 file?
I created a specific directory for a user and I would like to limit that directory to have only 1 file. If that user wants to store new file, the user has to delete the old file before saving the new file into that directory.
Is this possible? Ideally without having to write any script and use cron job to 'monitor' the directory.
There are a few users that I would like to impose this limit to.
Any suggestion please?