手动创建所需大小的文件

问题描述

是否可以打开文本编辑器,编写特定的内容,保存时无需扩展名,并以任意大小但实际上为空的文件结尾?像truncate/fallocate/head/dd <length> <filename>const isCorrectForm = (path,form) => path === path.normalize(`NF${form}`) const fetchData = async() => { const sourcePathC = encodeURIComponent('\u00e9'); // "é" const sourcePathD = encodeURIComponent('\u0065\u0301'); // "é" console.log(sourcePathC,sourcePathD); await fetch('https://httpbin.org/post',{ method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({ pathsFormC: [sourcePathC],pathsFormD: [sourcePathD] }),}) .then((response) => response.json()) .then((data) => { const responseData = JSON.parse(data.data); const responsePathC = decodeURIComponent(responseData.pathsFormC[0]); const responsePathD = decodeURIComponent(responseData.pathsFormD[0]); console.log(responsePathC,responsePathD); console.log({ isSourcePathCFormC: isCorrectForm(sourcePathC,'C'),isSourcePathDFormD: isCorrectForm(sourcePathD,'D'),isResponsePathCFormC: isCorrectForm(responsePathC,isResponsePathDFormD: isCorrectForm(responsePathD,}); }); } fetchData();,但没有O.S.的帮助?还是仅O.S.可以应付吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)