Yahoo Search Búsqueda en la Web

Resultado de búsqueda

  1. fs.existsSync(path) fs.fchmodSync(fd, mode) fs.fchownSync(fd, uid, gid) fs.fdatasyncSync(fd) fs.fstatSync(fd[, options]) fs.fsyncSync(fd) fs.ftruncateSync(fd[, len]) fs.futimesSync(fd, atime, mtime) fs.globSync(pattern[, options]) fs.lchmodSync(path, mode) fs.lchownSync(path, uid, gid) fs.lutimesSync(path, atime, mtime) fs.linkSync(existingPath ...

  2. 19 de dic. de 2010 · Note that fs.exists () is deprecated, but fs.existsSync () is not. (The callback parameter to fs.exists () accepts parameters that are inconsistent with other Node.js callbacks. fs.existsSync () does not use a callback.) So you can safely use fs.existsSync () to synchronously check if a file exists.

  3. 15 de ene. de 2024 · Last Updated : 15 Jan, 2024. The fs.existsSync () method is used to synchronously check if a file already exists in the given path or not. It returns a boolean value which indicates the presence of a file. Syntax:

  4. 5 de jul. de 2022 · El método fs.existsSync() se utiliza para comprobar de forma síncrona si un archivo ya existe en la ruta dada o no. Devuelve un valor booleano que indica la presencia de un archivo. Sintaxis: fs.existsSync( path ) Parámetros: este método acepta un solo parámetro como se mencionó anteriormente y se describe a continuación:

  5. 5 de abr. de 2024 · You can use the fs.existsSync() method to check if a directory exists in Node.js. The method takes the path to the directory and returns true if it exists and false otherwise.

  6. 10 de abr. de 2020 · The simplest way to check if a certain directory exists in Node.js is by using the fs.existsSync() method. The existsSync() method asynchronously checks for the existence of the given directory. Here is an example: console.log('Directory exists!') } else {. console.log('Directory not found.')

  7. 22 de nov. de 2018 · Para verificar si un archivo existe de forma asincrónicamente usaremos la función fs.existsSync(); A continuación te mostramos un ejemplo de cómo se usa: Parámetros. Path: Ruta del archivo que quieres verificar; Respuesta. Boolean (TRUE | FALSE): Retorna Falso o Verdadero; Ejemplo if (fs. existsSync ("./archivo")) {console. log ...