How is the photocurrent directed: from electrode 1 to electrode 2 or vice versa?

The direction of movement of positively charged particles is taken as the positive direction of the current; therefore, the photocurrent is directed from electrode 2 to electrode 1.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.