import { fs } from'@empathize/framework';// Check if 'my_file.txt' existsfs.exists('my_file.txt').then(console.log);
fs.stats(path)
import { fs } from'@empathize/framework';// Get 'my_file.txt' file statsfs.stats('my_file.txt').then((stats) => {console.log(`Type: ${stats.type}`); // will be 'file' or 'directory'console.log(`Size: ${stats.size} bytes`);});
import { fs } from'@empathize/framework';// List files and folders inside of the 'my_folder'fs.files('my_folder').then((files) => {for (constfileof files)console.log(`[${file.type}] my_folder/${file.name}`);});