1 var fstream = require('../fstream.js')
3 process.chdir(__dirname)
7 path: 'path/to/symlink',
10 mode: '0755' // octal strings supported
12 .on('close', function () {
14 var fs = require('fs')
15 var s = fs.lstatSync('path/to/symlink')
16 var isSym = s.isSymbolicLink()
17 console.log((isSym ? '' : 'not ') + 'ok 1 should be symlink')
18 var t = fs.readlinkSync('path/to/symlink')
19 var isTarget = t === './file'
20 console.log((isTarget ? '' : 'not ') + 'ok 2 should link to ./file')
24 process.on('exit', function () {
25 console.log((notOpen ? '' : 'not ') + 'ok 3 should be closed')