file_name = "16525/2024/0530/xxx.jpg" path,file=os.path.split(file_url) #16525/2024/0530 xxx.jpg
dir, suffix = os.path.splitext(infile) #16525/2024/0530/xxx .jpg
if full.endswith(".py"): print("is py")