Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

remove-sync.md 299 B

3 lat temu
12345678910111213141516
  1. # removeSync(path)
  2. Removes a file or directory. The directory can have contents. Like `rm -rf`.
  3. - `path` `<String>`
  4. ## Example:
  5. ```js
  6. const fs = require('fs-extra')
  7. // remove file
  8. fs.removeSync('/tmp/myfile')
  9. fs.removeSync('/home/jprichardson') // I just deleted my entire HOME directory.
  10. ```