Week1 C2W1 Assignment "split_data" section

I would appreciate it, if anyone can advise me how to resolve the following issue.

In the “split_data” section of the Week 1 assignment, I got the following error message.

FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/PetImages/Cat//tmp/PetImages/Cat/7825.jpg’

It seems that “/tmp/PetImages/Cat” is repeated in the path.
I really have no clue how I got this.

Thanks in advance.
Best
Michio

In function split_data, seems like you are concatenating SOURCE_DIR and full path of a file inside the directory. Please fix it.

Thanks @balaji.ambresh.
This issue is resolved.

Best regards
Michio