更新
This commit is contained in:
@@ -142,14 +142,14 @@ export default {
|
||||
const _this = this;
|
||||
dialog
|
||||
.showOpenDialog({
|
||||
properties: ["multiSelections"],
|
||||
properties: ["openFile"],
|
||||
})
|
||||
.then(async (rel) => {
|
||||
console.log(rel);
|
||||
for (const item of rel.filePaths) {
|
||||
const stats = fs.statSync(item);
|
||||
let folder = false
|
||||
if (stats.isDirectory()) {
|
||||
if (stats.isFile()) {
|
||||
folder = true
|
||||
}
|
||||
await fs.stat(item, function (err, res) {
|
||||
|
||||
Reference in New Issue
Block a user