<reponame>yvanwangl/pythonLesson
import os
import shutil

# print(os.path.join('C:\\Users\\hanlu', 'testDir'))
# os.mkdir('C:\\Users\\hanlu\\testDir')
# os.rmdir('C:\\Users\\hanlu\\testDir')
# os.path.split('C:\\Users\\hanlu\\testDir')

# print([x for x in os.listdir('.') if os.path.isdir(x)])
#
# shutil.copyfile('writeFiles/writeTemp.txt', 'writeFiles/copy.txt')
#
# print([x for x in os.listdir('.') if os.path.isfile(x) and os.path.splitext(x)[1] == '.py'])

# os.rename('copy.txt', 'rename.txt')

os.remove('rename.txt')

import os
import shutil

# print(os.path.join('C:\\Users\\hanlu', 'testDir'))
# os.mkdir('C:\\Users\\hanlu\\testDir')
# os.rmdir('C:\\Users\\hanlu\\testDir')
# os.path.split('C:\\Users\\hanlu\\testDir')

# print([x for x in os.listdir('.') if os.path.isdir(x)])
#
# shutil.copyfile('writeFiles/writeTemp.txt', 'writeFiles/copy.txt')
#
# print([x for x in os.listdir('.') if os.path.isfile(x) and os.path.splitext(x)[1] == '.py'])

# os.rename('copy.txt', 'rename.txt')

os.remove('rename.txt')
# print(os.path.join('C:\\Users\\hanlu', 'testDir')) # os.mkdir('C:\\Users\\hanlu\\testDir') # os.rmdir('C:\\Users\\hanlu\\testDir') # os.path.split('C:\\Users\\hanlu\\testDir') # print([x for x in os.listdir('.') if os.path.isdir(x)]) # # shutil.copyfile('writeFiles/writeTemp.txt', 'writeFiles/copy.txt') # # print([x for x in os.listdir('.') if os.path.isfile(x) and os.path.splitext(x)[1] == '.py']) # os.rename('copy.txt', 'rename.txt')