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