Gives directories priority over files