derzombiiie 92b5eeb2ef Comment system added
comment author = ip
comment author info = origin of ip
ip addr is jank ( uses php public server for ip get)
fuck apache reverse proxy ip change thigy thing

comment command

started config stuff
started planning logging system
2021-08-10 02:00:03 +02:00

25 lines
704 B
JavaScript

var fstream = require("../fstream.js")
, closed = false
fstream
.Writer({ path: "path/to/symlink"
, linkpath: "./file"
, isSymbolicLink: true
, mode: "0755" // octal strings supported
})
.on("close", function () {
closed = true
var fs = require("fs")
var s = fs.lstatSync("path/to/symlink")
var isSym = s.isSymbolicLink()
console.log((isSym?"":"not ") +"ok 1 should be symlink")
var t = fs.readlinkSync("path/to/symlink")
var isTarget = t === "./file"
console.log((isTarget?"":"not ") +"ok 2 should link to ./file")
})
.end()
process.on("exit", function () {
console.log((closed?"":"not ")+"ok 3 should be closed")
})