An image pickup apparatus includes an image pickup unit configured to
capture an image of an object; a storing unit configured to store file
path information of the image; a specifying unit configured to specify a
file path for the image based on the file path information; a
determination unit configured to determine whether a second image having
a second file path that is the same as the file path exists on an
external recording medium; a file path changing unit configured to, if it
is determined by the determination unit that the second image having the
second file path that is the same as the file path exists on the external
recording medium, change the second file path recorded on the external
recording medium; and a recording control unit configured to record the
image on the external recording medium.