            loading.destroy();
                    notyf.error("{{ "NETWORK_ERROR" | gettext }}");
                }
            })
        }

        function new_file() {
            let loading = new KZ_Loading();
            let new_name = $("#file-path").val();
            if (new_name === "") {
                notyf.error("{{ "NO_PAGE_NAME" | gettext }}");
                return;
            }
            for (let i = 0; i < posts.length; i++) {
                if (posts[i].name === new_name) {
      