Jump to content
Server Maintenance This Week. ×

Deleting multiple files


This topic is 5831 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm trying out SuperContainer; looks good so far, but here's a question.

I'm creating a database that will have multiple files uploaded for each record and the files for each record will be in a unique subdirectory. If I delete a record in the database I also weant to delete all the files linked to that record.

Is there a way SuperContainer can delete a subdirectory and all its contents or do I have to delete each of the files one by one? I have a script that loops to get the path to each file to be deleted and sends SuperContainer the delete command with the path to the file, one by one. I'd rather be able to just send SuperContainer the path of the subdirectory and delete everything at once.

Edited by Guest
Link to comment
Share on other sites

This topic is 5831 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.