fixing check id public share is a folder or not