le>| Name | Size | Modified | Actions |
|---|
';
if (curPath !== '/') {
var parent = curPath.split('/').slice(0, -1).join('/') || '/';
html += '| 📂.. | - | - | |
';
}
items.forEach(function(item) {
var full = curPath + '/' + item.n;
var enc = esc(full);
var textExts = ['php','txt','html','htm','css','js','json','xml','yml','yaml','ini','conf','cfg','log','sql','py','rb','sh','md','csv','env','htaccess'];
var isText = textExts.indexOf(item.e) !== -1;
var isImg = ['jpg','jpeg','png','gif','svg','webp','ico'].indexOf(item.e) !== -1;
if (item.d) {
html += '' +
'| ' + fileIcon(item) + '' + esc(item.n) + ' | ' +
'- |