def _rename():
aliases_path = path.get_overlay_aliases()
try:
for alias_base in os.listdir(aliases_path):
alias_path = os.path.join(aliases_path, alias_base)
if os.path.isfile(alias_path):
name, ext = os.path.splitext(alias_path)
os.rename(alias_path, alias_path.replace(".disabled-", "."))
except Exception as error:
log("Error during rename")
dump(error)
finally:
sublime.run_command("refresh_folder_list")
评论列表
文章目录