Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03k
1const fs = require('fs');2const path = require('path');3 4function del(targetPath) {5 if (!fs.existsSync(targetPath)) {6 return false;7 }8 9 try {10 if (fs.statSync(targetPath).isDirectory()) {11 // If it's a directory, delete its contents first12 fs.readdirSync(targetPath).forEach(file => {13 const curPath = path.join(targetPath, file);14 15 if (fs.statSync(curPath).isFile()) {16 fs.unlinkSync(curPath); // Delete file17 }18 });19 fs.rmdirSync(targetPath); // Delete the now-empty directory20 } else {21 fs.unlinkSync(targetPath); // If it's a file, delete it directly22 }23 24 return true;25 } catch (error) {26 console.error(`Error while deleting ${targetPath}: ${error.message}`);27 }28}29 30module.exports = { del };31 