Use the share disposition to detect the direction of a pipe.