Skip to content

Instantly share code, notes, and snippets.

View imhemish's full-sized avatar

Hemish imhemish

View GitHub Profile
@imhemish
imhemish / fileListing.py
Last active March 12, 2021 08:31
fileListing
import os
import shutil
listing = os.listdir()
filtered = []
for item in listing:
if ".mp3" in item:
tempdata = item.split(".mp3") # Can use any other file than .mp3
requireditem = tempdata[0]
filtered.append(requireditem)
with open("current.txt", "w") as file: