A diode doesn't control the direction of current. It just only lets current flow one way.
But there are other devices that do only allow current to flow one way through them. You can wire up a MOSFETs to do something similar. This is often used for reverse-polarity protection where the voltages are so low that a diode voltage drop cannot be tolerated. Diacs and thyristors also only let current flow in one direction (but has other quirks).
What are you trying to do?