I have two folders one with filenames
"mvn_l2_lpnt_20180101_v03_r04_ephemeris_data.dat"
and another with "mvn_l2_svys_20180101_v04_r06_ephemeris_data.dat"
.
the filenames are highly randomized in both files. I need to find matched file names from both folders.
Ex: folder1: file1-'20180101' this matches (Partially only date) with folder2-file2.
I need to find all the files in folder2 which are similar to the date(filename) of the folder1.
I am a beginner in python and I searched many answers from StackOverflow which are not serving my purpose.
Is there any other way?.
Thank You
question from:
https://stackoverflow.com/questions/65903052/how-to-segregate-the-matched-file-name-from-the-two-folder-in-python 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…