Sha256: f6ae1ccb10908f6f5d122b24ae364548fc6282f912d195b12f43d9954578ea92
Contents?: true
Size: 428 Bytes
Versions: 46
Compression:
Stored size: 428 Bytes
Contents
# ensureLinkSync(srcpath, dstpath) Ensures that the link exists. If the directory structure does not exist, it is created. - `srcpath` `<String>` - `dstpath` `<String>` ## Example: ```js const fs = require('fs-extra') const srcpath = '/tmp/file.txt' const dstpath = '/tmp/this/path/does/not/exist/file.txt' fs.ensureLinkSync(srcpath, dstpath) // link has now been created, including the directory it is to be placed in ```
Version data entries
46 entries across 46 versions & 2 rubygems