Must add trailing slash to dir entries