diff --git a/scripts/Clean_the_folder/Clean.py b/scripts/Clean_the_folder/Clean.py deleted file mode 100644 index e273411..0000000 --- a/scripts/Clean_the_folder/Clean.py +++ /dev/null @@ -1,11 +0,0 @@ -import os -folder_location = 'C:\\Users\\user\\Downloads\\demo' - -os.chdir(folder_location) -list_of_files = os.listdir() - -images = [content for content in list_of_files if content.endswith(('.png','.jpg','.jpeg'))] - -for index, image in enumerate(images): - os.rename(image,f'{index}.png') - diff --git a/scripts/Clean_the_folder/readme.md b/scripts/Clean_the_folder/readme.md deleted file mode 100644 index 5f5db2f..0000000 --- a/scripts/Clean_the_folder/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -# Cleaning Download Folder -One of the messiest things in this world is the download folder of a developer. When writing a blog, working on a project, something similar we just download images and save them with ugly and funny names like asdfg.jpg. - -This python script will clean your download folder by renaming and deleting certain files based on some condition. \ No newline at end of file diff --git a/scripts/Clean_the_folder/requirements.txt b/scripts/Clean_the_folder/requirements.txt deleted file mode 100644 index 4f3cbbf..0000000 --- a/scripts/Clean_the_folder/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -# Dont forget to import OS \ No newline at end of file