Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- file upload
- Kotlin
- restful api
- It
- state
- react
- kafka
- Nest.js
- node.js
- 상속
- swagger
- 코틀린
- Producer
- SWIFT
- 개발이 취미인 사람
- 조건문
- vue
- component
- spring boot
- front-end
- props
- 반복문
- class
- javascript
- jpa
- java
- Sequelize
- AWS
- back-end
- 개발자
Archives
- Today
- Total
목록file system (1)
개발이 취미인 사람

- 개요안녕하세요. 이번 시간에는 Node.js 내장 모듈인 fs(File System)를 활용해보는 시간은 가져보도록 하겠습니다. 코드와 주석을 보고 충분히 알 수 있으니 필요한 부분을 사용하시면 될 것 같습니다.- 사용법 Directory디렉토리 체크 및 생성const fs = require('fs');//Directory 존재 여부 체크const directory = fs.existsSync("./sample")//디렉토리 경로 입력//Directory가 존재 한다면 true 없다면 falseconsole.log("Boolan : ", directory);//Directory 생성fs.mkdirSync("생성 디렉토리 경로") //보통 Directory가 없다면 새로 만들어야 한다면 아래와 같..
백앤드(Back-End)/Node.JS
2021. 1. 19. 12:41