Finish add directory function
Add the function of broadcast after add a new file