This commit is contained in:
24kycj
2024-12-03 00:12:08 +08:00
parent 1dba691ab9
commit 8eee91ee3a
3 changed files with 17 additions and 22 deletions
@@ -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) {