import os
import shutil
import glob

print(os.name)
print(os.listdir())  # перечисляение директорий
print(os.getcwd())
path = os.getcwd()
# for i in range(10):
#     os.mkdir(str(i))
# try:
#     os.mkdir('backup')
# except FileExistsError:
#     os.rmdir('backup')
# for i in os.listdir():
#     if i.endswith('.py'):
#         shutil.copyfile(i, path + '/backup')

# for i in glob.glob('*.py'):
    # shutil.copyfile(i, path + '/backup/')
# os.remove('code.sh')
shutil.rmtree('backup')













9f359196f7466bf00656c9d877aa14653a5179a8
<mask token>

<mask token>
print(os.name)
print(os.listdir())
print(os.getcwd())
<mask token>
shutil.rmtree('backup')

<mask token>
print(os.name)
print(os.listdir())
print(os.getcwd())
path = os.getcwd()
shutil.rmtree('backup')

import os
import shutil
import glob
print(os.name)
print(os.listdir())
print(os.getcwd())
path = os.getcwd()
shutil.rmtree('backup')

import os
import shutil
import glob

print(os.name)
print(os.listdir())  # перечисляение директорий
print(os.getcwd())
path = os.getcwd()
# for i in range(10):
#     os.mkdir(str(i))
# try:
#     os.mkdir('backup')
# except FileExistsError:
#     os.rmdir('backup')
# for i in os.listdir():
#     if i.endswith('.py'):
#         shutil.copyfile(i, path + '/backup')

# for i in glob.glob('*.py'):
    # shutil.copyfile(i, path + '/backup/')
# os.remove('code.sh')
shutil.rmtree('backup')












