Spaces:
Runtime error
Runtime error
File size: 315 Bytes
514ac1a |
1 2 3 4 5 6 7 8 9 10 11 |
import os
def create_txt_for_mp3():
for file in os.listdir():
if file.endswith(".mp3"):
file_name_without_extension, _ = os.path.splitext(file)
with open(file_name_without_extension + '.txt', 'w') as f:
f.write(file_name_without_extension)
create_txt_for_mp3()
|