Lines Matching full:fs
17 import * as fs from 'fs';
55 if (!fs.existsSync(dirPath)) {
56 fs.mkdirSync(dirPath, { recursive: true });
66 const content = fs.readFileSync(filePath, 'utf8');
76 const fd = fs.openSync(filePath, 'r');
78 const bytesRead = fs.readSync(fd, buffer, 0, buffer.length, 0);
79 fs.closeSync(fd);
96 if (fs.existsSync(normalizedPath)) {
101 if (!fs.existsSync(dir)) {
102 fs.mkdirSync(dir, { recursive: true });
105 fs.writeFileSync(normalizedPath, content, { encoding: 'utf-8' });