i want to clean a folder in python except one file in it? code example
Example 1: delete all the files without one in linux
# delete all except the filename
$ rm -v !("filename")
Example 2: bash delete everything except
$ rm -v !("filename1"|"filename2")