ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

How To Read The Contents Of A Directory In Node JS (Async & Sync) | Java Inspires

#JavaInspires

#NodeJsPractice

#SilentTutorial

java

inspires

java inspires

node js

node

js

tutorial

module

node js tutorial

node js practice

code examples

code samples

How To Read The Contents Of A Directory In Node JS

fs.readdir

eads the contents of a directory

Автор: Java Inspires

Загружено: 2020-05-09

Просмотров: 2205

Описание: In this video, we will learn how to read contents of a folder(directory) using api rmdir from Node Js File system module.

In Node.js, from fs module,
provides an api,
'fs.readdir()' reads the contents of a directory.
syntax:
'fs.readdir(path[, options], callback)
where
path = path of the directory
options = optional parameters
callback = callbackFunction

The callback gets two arguments (err, files) where files is an array of the names of the files in the directory.

'fs.readdirSync()' is synchronous version

ENOENT: no such file or directory, scandir 'sampleDirectory1'

#JavaInspires #NodeJsPractice #SilentTutorial

---------------------------------------------------------------------------------
Facebook   / javainspires  
Twitter   / javainspires  
Pinterest   / boards  
Linked In   / java-inspires-b782621a7  
Reddit   / javainspires_  
Tumblr   / javainspires  
Blogger https://javainspires.blogspot.com/
---------------------------------------------------------------------------------

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
How To Read The Contents Of A Directory In Node JS (Async & Sync) | Java Inspires

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]