Split the conditional-directory sending out of send_file_name() into
a new function: send_if_directory(). This lets the code that is recursively descending through the directories make its list of a dir's contents and close the DIR handle before recursing into the subdirs. Also, the "recurse" var is just true/false once again.
Showing
Please register or sign in to comment