更新时间:2022-05-20 22:31:14
当前代码将提供所有文件的列表在一个文件夹中,假设它在服务器端你要列出所有文件:
The current code will give a list of all files in a folder, assuming it's on the server side you want to list all files:
var fs = require('fs');
var files = fs.readdirSync('/assets/photos/');