I am receiving some folders through FTP in my severs's 'MYFolder' everyday.I need to distribute the received folders to 14 users,which has read access 14 different folders(their resepctive ids) in my system.Also there is one Backup folder in my system which will be used for 10 days data retention.
My requirement is
1>.Code should check Backup folder everyday and delete contents older then 10 days.
2>.code should check all 14 user folders for their contents,if it's empty,move todays data evenly to these 14 folders,otherwise first delete the contents from user folders then move todays data.
3>.Move all the todays received folders to Backup folder and remove from MYFolder.
The no. of folders will be more then 14 and I am not limiting my program to check if the same users is getting more workload everyday.
I am looking for full programming code and preferably in either c,ASP(File system object) or Java.