Skip to content

Commit

Permalink
fix: home path relative to project root
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrdam committed Sep 10, 2023
1 parent df0aed4 commit c83b260
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/server.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const FtpSrv = require("ftp-srv");
const path = require("upath");

// Using non-standard port
const port = 2121;
const homeDir =
require("os").homedir() + "/code/projects/ftp-deploy/test/remote";
// console.log("serving", homeDir);
const homeDir = path.join(__dirname, "remote");

const options = {
url: "ftp://127.0.0.1:" + port,
Expand Down

0 comments on commit c83b260

Please sign in to comment.