The program no longer works after I compiled it with pkg
Archiviert 9 months ago
J
Jannik
Verified
error
```
Error: Cannot mkdir in a snapshot. Try mountpoints instead.
at mkdirFailInSnapshot (pkg/prelude/bootstrap.js:1633:7)
at Object.mkdirSync (pkg/prelude/bootstrap.js:1645:12)
at check (C:\snapshot\Src token checker\index.js)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 15)
at async C:\snapshot\Src token checker\index.js
```
code
```
const subFolderName = folderName; // Name des Unterordners
const outputPath = path.join(__dirname, 'output', subFolderName); // Pfad zum Unterordner
// Überprüfen, ob der Unterordner existiert, und wenn nicht, erstellen
if (!fs.existsSync(outputPath)) {
fs.mkdirSync(outputPath, { recursive: true });
}
```
