thiggins09 Posted July 29, 2007 Share Posted July 29, 2007 Would getting a list of files in the directory and then unlinking each one be the best way? Quote Link to comment Share on other sites More sharing options...
corbin Posted July 29, 2007 Share Posted July 29, 2007 What would the other way be? I guess you could delete the directory, but if I were you, I would just gather a list of files (like you said), and then unlink them. Quote Link to comment Share on other sites More sharing options...
thiggins09 Posted July 29, 2007 Author Share Posted July 29, 2007 Actully for this situation just deleting the directory then recreating it would be better. But how to you use rmdir with non empty directories? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.