+ 1
I want to sort files by the extensions but I can't find code that will help me... ?
all I want is a package can control or use files extensions
1 Respuesta
+ 4
1. Use the os module to get the all the files and directories, and store them in a list.
2. Create a new list that only contains file extensions.
3. Sort the list of extensions.