def moveKeyFilesToCorrectLocations(keys_dir, pkdir, skdir):
for key_file in os.listdir(keys_dir):
if key_file.endswith(".key"):
try:
shutil.move(os.path.join(keys_dir, key_file),
os.path.join(pkdir, key_file))
except shutil.Error as ex:
# print(ex)
pass
if key_file.endswith(".key_secret"):
try:
shutil.move(os.path.join(keys_dir, key_file),
os.path.join(skdir, key_file))
except shutil.Error as ex:
# print(ex)
pass
评论列表
文章目录