文件操作 - create.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/vite-plugin-svg-icons/node_modules/css-tree/lib/convertor/create.js
编辑文件内容
var List = require('../common/List'); module.exports = function createConvertors(walk) { return { fromPlainObject: function(ast) { walk(ast, { enter: function(node) { if (node.children && node.children instanceof List === false) { node.children = new List().fromArray(node.children); } } }); return ast; }, toPlainObject: function(ast) { walk(ast, { leave: function(node) { if (node.children && node.children instanceof List) { node.children = node.children.toArray(); } } }); return ast; } }; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件