fixing check if public share is a folder or not