Mowje / node-ths

Node.js module to create tor hidden services and manage them programmatically
MIT License
36 stars 8 forks source link

Example initialization produces error #2

Closed mattcollier closed 9 years ago

mattcollier commented 9 years ago

The main page provides the example: var thsBuilder = require('ths'); var ths = new thsBuilder(__dirname);

passing '__dirname' is evidently redundant because I got the following error:

fs.js:791 return binding.mkdir(pathModule._makeLong(path), ^ Error: ENOENT: no such file or directory, mkdir '/home/matt/noxious/home/matt/noxious/ths-data/keys'

However, if I do: var thsBuilder = require('ths'); var ths = new thsBuilder();

It runs as expected and the ths-data folder is properly created in the current directory.

mattcollier commented 9 years ago

Pull request: https://github.com/Mowje/node-ths/pull/4