function f_r(FilePath, Content) local file = io.open(FilePath, "w") if file then file:write(Content) file:close() return true end return false end function randomString(quantity) if quantity == nil or quantity == '' then gg.alert('string_confusion > quantity == nil', 'return false') return false end content = '' for i=1, quantity do content = content..string_list[math.random(1, #string_list)] end return content end function randomSuffix(quantity) if quantity == nil or quantity == '' then gg.alert('string_confusion > quantity == nil', 'return false') return false end content = '' for i=1, quantity do content = content..'.'..suffix_list[math.random(1, #suffix_list)] end return content end getFile = gg.getFile() path = getFile..'_dir' string_list = { '\n', '\n', '\n', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'n', 'w', 'x', 'y', 'z', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '�', '🇦', '🇧', '🇨', '🇩', '🇪', '🇫', '🇬', '🇭', '🇮', '🇯', '🇰', '🇱', '🇲', '🇳', '🇴', '🇵', '🇶', '🇷', '🇸', '🇹', '🇺', '🇻', '🇼', '🇽', '🇾', '🇿', '○', '◇', '□', '♢', '●', '◆', '◆', '■', '♦', '♡', '♤', '♧', '☆', '♥', '♠', '♣', '★', '△', '▽', '▲', '▼', '◢', '◣', '◤', '◥', '♟', '♚', '♛', '♞', '♝', '✘', '✔', '↣', '꧁', '꧂', '℡', '※', '⇔', '↔', '↹', '▓', '﹏', '﹍', '﹎', '―', '︴', '♫', '♬', '♪', } suffix_list = { '3gp', '7z', 'a', 'aac', 'abw', 'ac3', 'ai', 'apk', 'app', 'asf', 'avi', 'bat', 'bin', 'bmp', 'bz2', 'c', 'cab', 'cbz', 'cbr', 'class', 'cpp', 'csv', 'dat', 'deb', 'dll', 'dmg', 'doc', 'docx', 'dot', 'eps', 'exe', 'fla', 'flac', 'flv', 'gif', 'gz', 'h', 'htm', 'html', 'ico', 'img', 'iso', 'jar', 'jpeg', 'jpg', 'js', 'json', 'jsx', 'key', 'log', 'm4a', 'mkv', 'mp3', 'mp4', 'mpeg', 'mpg', 'msi', 'mtf', 'ogg', 'opf', 'pages', 'pdf', 'php', 'png', 'ppt', 'pptx', 'ps', 'psd', 'py', 'rar', 'rb', 'rpm', 'rss', 'rtf', 'sav', 'sh', 'sig', 'sql', 'svg', 'swf', 'tar', 'tar.gz', 'tex', 'tgz', 'tiff', 'ts', 'txt', 'vcd', 'vob', 'wav', 'webm', 'wma', 'wmv', 'woff', 'woff2', 'xlsx', 'xml', 'xsd', 'xsl', 'zip', 'zsh', 'apk', 'flv', 'log', 'm4v', 'cda', 'cue', 'iso', 'vbs', 'jar', 'tiff', 'raw', 'ai', 'mpg4', 'mkv', 'm2ts', 'mxf', 'rm', 'rmvb', 'srt', 'sub', 'ts', 'ttf', 'vcf', 'vcard', 'vmdk', 'wks', 'wps', 'xap', 'xhtml', 'xmind', 'z01', 'z02', 'z03' } for i=1, 512 do f_r(path..'/['..i..'-'..math.random(i, i*i)..']'..randomString(math.random(1, 32)) .. randomSuffix(math.random(1, 32)), randomString(math.random(1, 512))) gg.toast('进度'..i) end