Does your library agree with itself? One function returns a "directory" which is not a directory according to another function in your library.
Report message to a moderator