Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

ensureLink-sync.md 428 B

há 3 anos
1234567891011121314151617
  1. # ensureLinkSync(srcpath, dstpath)
  2. Ensures that the link exists. If the directory structure does not exist, it is created.
  3. - `srcpath` `<String>`
  4. - `dstpath` `<String>`
  5. ## Example:
  6. ```js
  7. const fs = require('fs-extra')
  8. const srcpath = '/tmp/file.txt'
  9. const dstpath = '/tmp/this/path/does/not/exist/file.txt'
  10. fs.ensureLinkSync(srcpath, dstpath)
  11. // link has now been created, including the directory it is to be placed in
  12. ```